diff options
author | Mavridis Philippe <[email protected]> | 2021-01-25 15:34:56 +0200 |
---|---|---|
committer | Mavridis Philippe <[email protected]> | 2021-01-25 15:34:56 +0200 |
commit | c06676f232466dcc7917299b75f5296ff830b01c (patch) | |
tree | aacf02557175b245b1b68bbc8accda67cda586b3 /src/scanviewer.cpp | |
parent | 719d2f66dbdf7a70b084529acc888269a1743c1b (diff) | |
download | klamav-c06676f232466dcc7917299b75f5296ff830b01c.tar.gz klamav-c06676f232466dcc7917299b75f5296ff830b01c.zip |
Fixed some TQString->const char * casts.
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'src/scanviewer.cpp')
-rw-r--r-- | src/scanviewer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scanviewer.cpp b/src/scanviewer.cpp index bf00eca..3766a0d 100644 --- a/src/scanviewer.cpp +++ b/src/scanviewer.cpp @@ -187,7 +187,7 @@ void ScanViewer::processOutput() int fnameStartPoint = 0; int fnameEndPoint = item2.findRev(":"); TQString tmpFName = item2.mid(fnameStartPoint,(fnameEndPoint - fnameStartPoint)); - tmpFName = i18n(tmpFName); + tmpFName = i18n(tmpFName.ascii()); if ((pos = (item2.find(" FOUND"))) != -1){ //if ((pos = buf.section('\n',j,j).find("FOUND")) != -1){ TQString tmpVirusName = item2.mid((fnameEndPoint+1),(item2.length() - (fnameEndPoint+1))); @@ -736,7 +736,7 @@ void ScanViewer::Quarantine(){ lastQuarItems.prepend(item2); (resultview->findItem(fname,0))->setText(2,"Quarantined"); (resultview->findItem(fname,0))->setPixmap( 0, SmallIcon("klamav") ); - chmod((const char *)qname,0400); + chmod(qname.ascii(),0400); CollectionDB::instance()->insertEvent("Quarantine",TQString("Quarantined"),fname); }else{ |