[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/kugar/lib
From:       David Faure <faure () kde ! org>
Date:       2003-05-02 21:12:02
[Download RAW message or body]

CVS commit by faure: 

Fix compilation


  M +4 -4      mdatabasereportengine.cpp   1.2
  M +2 -2      sqlcursor.cpp   1.2


--- koffice/kugar/lib/mdatabasereportengine.cpp  #1.1:1.2
@@ -264,5 +264,5 @@ void MDatabaseReportEngine::initDatabase
                         db->lastError().databaseText() ;
                 //QMessageBox::critical( this, tr("Database connection Error"), strError );
-                qWarning( strError );
+                qWarning( "%s", strError.local8Bit().data() );
                 return;
     }
@@ -275,10 +275,10 @@ bool MDatabaseReportEngine::createReport
         if (ft.open(IO_ReadOnly)) {
                 if (!setReportTemplate(&ft)){
-                        qWarning( "Invalid data file: %s", templateFile.latin1() );
+                        qWarning( "Invalid data file: %s", QFile::encodeName( templateFile ).data() );
                         return false;
                 }
                 ft.close();
         } else {
-                qWarning( "Unable to open data file: %s", templateFile.latin1() );
+                qWarning( "Unable to open data file: %s", QFile::encodeName( templateFile ).data() );
                 return false;
         }

--- koffice/kugar/lib/sqlcursor.cpp  #1.1:1.2
@@ -56,5 +56,5 @@ CSqlCursor::CSqlCursor( const QString & 
                 // an error occured if the cursor is not active
                 if ( !isActive() ) {
-                        QSqlError& err = lastError();
+                        QSqlError err = lastError();
                         QString errStr ( "The database reported an error\n" );
                         if ( !err.databaseText().isEmpty() )
@@ -63,5 +63,5 @@ CSqlCursor::CSqlCursor( const QString & 
                                 errStr += err.driverText();
                         //QMessageBox::critical( 0, tr("report engine error"), errStr );
-                        qWarning( errStr );
+                        qWarning( "%s", errStr.local8Bit().data() );
                 } else {
                         // we have not a select query statement


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic