summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-05-04 19:05:43 -0500
committerSlávek Banko <slavek.banko@axis.cz>2012-06-05 20:47:59 +0200
commitbee5fa3e19c9fd6a062ae5bb6ce610dc675fd4c1 (patch)
tree027082c501cc6bc0b69312ce6e95d30b4ed7d7e8 /src
parentdb20160ec5110839b066e9bb8a9b7601c145a7d2 (diff)
downloadkvirc-bee5fa3e19c9fd6a062ae5bb6ce610dc675fd4c1.tar.gz
kvirc-bee5fa3e19c9fd6a062ae5bb6ce610dc675fd4c1.zip
Fix format string errors
(cherry picked from commit 51ff06f0c1c6981694fe60a20870de26749b895f)
Diffstat (limited to 'src')
-rw-r--r--src/kvirc/kvs/kvi_kvs_treenode_specialcommanddefpopup.cpp6
-rwxr-xr-xsrc/modules/help/index.cpp8
2 files changed, 7 insertions, 7 deletions
diff --git a/src/kvirc/kvs/kvi_kvs_treenode_specialcommanddefpopup.cpp b/src/kvirc/kvs/kvi_kvs_treenode_specialcommanddefpopup.cpp
index e5647bf0..a3e10c48 100644
--- a/src/kvirc/kvs/kvi_kvs_treenode_specialcommanddefpopup.cpp
+++ b/src/kvirc/kvs/kvi_kvs_treenode_specialcommanddefpopup.cpp
@@ -281,15 +281,15 @@ void KviKvsTreeNodeSpecialCommandDefpopupLabelPopup::dump(const char * prefix)
TQString x = tmp;
x += "CONDITION: ";
x += m_szCondition;
- debug(x.utf8().data());
+ debug("%s",x.utf8().data());
x = tmp;
x += "TEXT: ";
x += m_szText;
- debug(x.utf8().data());
+ debug("%s",x.utf8().data());
x = tmp;
x += "ICON: ";
x += m_szIcon;
- debug(x.utf8().data());
+ debug("%s",x.utf8().data());
for(KviKvsTreeNodeSpecialCommandDefpopupLabel * l = m_pLabels->first();l;l = m_pLabels->next())
l->dump(tmp.utf8().data());
#endif
diff --git a/src/modules/help/index.cpp b/src/modules/help/index.cpp
index d77e6fed..50354fb1 100755
--- a/src/modules/help/index.cpp
+++ b/src/modules/help/index.cpp
@@ -156,7 +156,7 @@ void Index::parseDocument( const TQString &filename, int docNum )
{
KviFile file( filename );
if ( !file.openForReading() ) {
- qWarning( "can not open file " + filename );
+ qWarning( "can not open file %s", filename.ascii() );
return;
}
TQTextStream s( &file );
@@ -452,7 +452,7 @@ TQString Index::getDocumentTitle( const TQString &fileName )
if ( !file.openForReading() ) {
- qWarning( "cannot open file " + fileName );
+ qWarning( "cannot open file %s", fileName.ascii() );
return fileName;
@@ -701,7 +701,7 @@ bool Index::searchForPattern( const TQStringList &patterns, const TQStringList &
if ( !file.openForReading() ) {
- qWarning( "cannot open file " + fileName );
+ qWarning( "cannot open file %s", fileName.ascii() );
return FALSE;
@@ -851,4 +851,4 @@ bool Index::searchForPattern( const TQStringList &patterns, const TQStringList &
-#include "index.moc" \ No newline at end of file
+#include "index.moc"