author | mickeyl <mickeyl> | 2003-03-30 02:17:58 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-03-30 02:17:58 (UTC) |
commit | 35e4d0b2a71b8ca15baeb0b0383af21fc1d8d3ae (patch) (side-by-side diff) | |
tree | 335bb12952530b397788e0b02e2072c48788b920 /libopie2 | |
parent | 4ace7ac9fff84df80d3066236ff970b9b393cf48 (diff) | |
download | opie-35e4d0b2a71b8ca15baeb0b0383af21fc1d8d3ae.zip opie-35e4d0b2a71b8ca15baeb0b0383af21fc1d8d3ae.tar.gz opie-35e4d0b2a71b8ca15baeb0b0383af21fc1d8d3ae.tar.bz2 |
one more fix for gcc 2.9x
-rw-r--r-- | libopie2/opiecore/odebug.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libopie2/opiecore/odebug.cpp b/libopie2/opiecore/odebug.cpp index b4eaf2d..b2a37bc 100644 --- a/libopie2/opiecore/odebug.cpp +++ b/libopie2/opiecore/odebug.cpp @@ -111,33 +111,37 @@ static void oDebugBackend( unsigned short level, unsigned int area, const char * switch( level ) { case ODEBUG_INFO: lev = "(Info)"; caption = "Info"; priority = LOG_INFO; break; case ODEBUG_WARN: lev = "(Warn)"; caption = "Warning"; priority = LOG_WARNING; break; case ODEBUG_FATAL: lev = "(Fatal)"; caption = "Fatal Error"; priority = LOG_CRIT; break; default: qDebug( "oDebugBackend: Warning: Unknown debug level! - defaulting to ODEBUG_ERROR." ); case ODEBUG_ERROR: lev = "(Error)"; caption = "Error"; priority = LOG_ERR; break; } short output = OGlobalSettings::debugMode(); if (!oApp && (output == 1)) { qDebug( "oDebugBackend: Warning: no oapplication object - can't use MsgBox" ); output = 2; // need an application object to use MsgBox } - QString areaName = (oApp) ? oApp->appName() : "<unknown>"; + // gcc 2.9x is dumb and sucks... can you hear it? + //QString areaName = (oApp) ? oApp->appName() : "<unknown>"; + QString areaName; + if ( oApp ) areaName = oApp->appName(); + else areaName = "<unknown>"; // Output switch( output ) { case -1: // ignore { return; } case 0: // File { QString outputFilename = OGlobalSettings::debugOutput(); const int BUFSIZE = 4096; char buf[BUFSIZE] = ""; buf[BUFSIZE-1] = '\0'; int nSize; |