summaryrefslogtreecommitdiffstats
path: root/ksim/monitors/snmp/snmp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksim/monitors/snmp/snmp.cpp')
-rw-r--r--ksim/monitors/snmp/snmp.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/ksim/monitors/snmp/snmp.cpp b/ksim/monitors/snmp/snmp.cpp
index a050acb..d79c596 100644
--- a/ksim/monitors/snmp/snmp.cpp
+++ b/ksim/monitors/snmp/snmp.cpp
@@ -57,7 +57,7 @@ static TQStringList allStrings( const EnumStringMapInfo *array )
{
TQStringList result;
for ( uint i = 0; array[ i ].stringValue; ++i )
- result << TQString::fromLatin1( array[ i ].stringValue );
+ result << TQString::tqfromLatin1( array[ i ].stringValue );
return result;
}
@@ -65,10 +65,10 @@ static TQString enumToString( const EnumStringMapInfo *array, int value )
{
for ( uint i = 0; array[ i ].stringValue; ++i )
if ( array[ i ].enumValue == value )
- return TQString::fromLatin1( array[ i ].stringValue );
+ return TQString::tqfromLatin1( array[ i ].stringValue );
assert( false );
- return TQString::null;
+ return TQString();
}
static int stringToEnum( const EnumStringMapInfo *array, TQString string, bool *ok )
@@ -76,7 +76,7 @@ static int stringToEnum( const EnumStringMapInfo *array, TQString string, bool *
string = string.lower();
uint i;
for ( i = 0; array[ i ].stringValue; ++i )
- if ( TQString::fromLatin1( array[ i ].stringValue ).lower() == string ) {
+ if ( TQString::tqfromLatin1( array[ i ].stringValue ).lower() == string ) {
if ( ok ) *ok = true;
return array[ i ].enumValue;
}
@@ -291,11 +291,11 @@ int KSim::Snmp::sessionErrorCode( netsnmp_session &session )
static TQString messageForErrorCode( int errorCode )
{
if ( errorCode >= SNMPERR_MAX && errorCode <= SNMPERR_GENERR )
- return TQString::fromLatin1( SnmpLib::self()->snmp_api_errstring( errorCode ) );
+ return TQString::tqfromLatin1( SnmpLib::self()->snmp_api_errstring( errorCode ) );
if ( errorCode >= SNMP_ERR_NOERROR && errorCode <= MAX_SNMP_ERR )
- return TQString::fromLatin1( SnmpLib::self()->snmp_errstring( errorCode ) );
+ return TQString::tqfromLatin1( SnmpLib::self()->snmp_errstring( errorCode ) );
- return TQString::null;
+ return TQString();
}
ErrorInfo::ErrorInfo()