summaryrefslogtreecommitdiffstats
path: root/src/dbviewer.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2021-01-25 15:34:56 +0200
committerMavridis Philippe <mavridisf@gmail.com>2021-01-25 15:34:56 +0200
commitc06676f232466dcc7917299b75f5296ff830b01c (patch)
treeaacf02557175b245b1b68bbc8accda67cda586b3 /src/dbviewer.cpp
parent719d2f66dbdf7a70b084529acc888269a1743c1b (diff)
downloadklamav-c06676f232466dcc7917299b75f5296ff830b01c.tar.gz
klamav-c06676f232466dcc7917299b75f5296ff830b01c.zip
Fixed some TQString->const char * casts.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src/dbviewer.cpp')
-rw-r--r--src/dbviewer.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/dbviewer.cpp b/src/dbviewer.cpp
index c61f2d4..e4e9525 100644
--- a/src/dbviewer.cpp
+++ b/src/dbviewer.cpp
@@ -213,7 +213,7 @@ int KlamDB::listdb(const char *filename)
KTempFile* tn = new KTempFile(tf->name());
- if((tmpd = fopen(tn->name(), "wb+")) == NULL) {
+ if((tmpd = fopen(tn->name().ascii(), "wb+")) == NULL) {
printf("!listdb(): Can't create temporary file \n");
delete tf;
delete tn;
@@ -231,9 +231,9 @@ int KlamDB::listdb(const char *filename)
fflush(tmpd);
fseek(tmpd, 0L, SEEK_SET);
- if(cli_untgz(fileno(tmpd), tf->name())) {
+ if(cli_untgz(fileno(tmpd), tf->name().ascii())) {
printf("!listdb(): Can't unpack CVD file.\n");
- cli_rmdirs(tf->name());
+ cli_rmdirs(tf->name().ascii());
delete tf;
delete tn;
fclose(tmpd);
@@ -246,9 +246,9 @@ int KlamDB::listdb(const char *filename)
/* wrapper end */
/* list extracted directory */
- listdir(tf->name());
+ listdir(tf->name().ascii());
- cli_rmdirs(tf->name());
+ cli_rmdirs(tf->name().ascii());
delete tf;
return 0;
@@ -697,7 +697,7 @@ void KlamDB::shouldIShow(TQWidget * current)
if ((current == this) && (!(loadinprogress))){
TQString db = tdemain->freshklam->getCurrentDBDir();
- if (checkdir((const char *)db) == -1){
+ if (checkdir(db.ascii()) == -1){
kdDebug() << "returned -1" << endl;
location = locate("data", "klamav/about/nodb.html");
homepage->openURL(location);
@@ -731,7 +731,7 @@ void KlamDB::shouldIShow(TQWidget * current)
// TQString db = tdemain->freshklam->getCurrentDBDir();
- listdir((const char *)db);
+ listdir(db.ascii());
prog->setProgress (sigs);
@@ -746,7 +746,7 @@ void KlamDB::shouldIShow(TQWidget * current)
memset(dbstat, 0, sizeof(struct cl_stat));
- cl_statinidir((const char *)db, dbstat);
+ cl_statinidir(db.ascii(), dbstat);
loadinprogress = false;
@@ -800,7 +800,7 @@ unsigned int KlamDB::getSigNos()
return 0;
}
- ret = cl_load((const char *)dbdir, engine, &no, CL_DB_STDOPT);
+ ret = cl_load(dbdir.ascii(), engine, &no, CL_DB_STDOPT);
cl_engine_free(engine);
kdDebug() << "no of sigs" << no << endl;