convert tools::Config to rtl::OString
This commit is contained in:
@@ -216,17 +216,17 @@ sal_uLong RemoteControlCommunicationManager::GetPort()
|
||||
aConf.WriteKey( aNoTesttoolKey, "something" );
|
||||
}
|
||||
|
||||
nPortIs = aConf.ReadKey("TTPort","0").ToInt32();
|
||||
nPortIs = aConf.ReadKey("TTPort","0").toInt32();
|
||||
|
||||
// noch pr<70>fen ob dieses Office getestet werden soll.
|
||||
if ( !bAutomate || aConf.ReadKey( aNoTesttoolKey, "" ) != "" )
|
||||
nPortIs = 0;
|
||||
|
||||
nComm = (sal_uInt16)aConf.ReadKey("Comm","0").ToInt32();
|
||||
nComm = (sal_uInt16)aConf.ReadKey("Comm","0").toInt32();
|
||||
if ( nComm )
|
||||
aConf.DeleteKey("Comm");
|
||||
|
||||
bQuiet = ( aConf.ReadKey("Quiet","no").CompareIgnoreCaseToAscii("yes") == COMPARE_EQUAL );
|
||||
bQuiet = aConf.ReadKey("Quiet","no").equalsIgnoreAsciiCase("yes");
|
||||
}
|
||||
return nPortIs;
|
||||
}
|
||||
|
@@ -362,11 +362,11 @@ void TestToolObj::LoadIniFile() // Laden der IniEinstellungen, die d
|
||||
aVar = UniString( __##aVar##__, RTL_TEXTENCODING_UTF8 );\
|
||||
}
|
||||
|
||||
#define NEWOLD( NewKey, OldKey ) \
|
||||
{ \
|
||||
ByteString aValue; \
|
||||
if ( ( (aValue = aConf.ReadKey( OldKey )).Len() ) && !aConf.ReadKey( NewKey ).Len() ) \
|
||||
aConf.WriteKey( NewKey, aValue ); \
|
||||
#define NEWOLD( NewKey, OldKey ) \
|
||||
{ \
|
||||
rtl::OString aValue; \
|
||||
if ( ( (aValue = aConf.ReadKey( OldKey )).getLength() ) && !aConf.ReadKey( NewKey ).getLength() ) \
|
||||
aConf.WriteKey( NewKey, aValue ); \
|
||||
}
|
||||
|
||||
|
||||
@@ -381,8 +381,8 @@ void TestToolObj::LoadIniFile() // Laden der IniEinstellungen, die d
|
||||
pImpl->aFileBase = DirEntry(aFB);
|
||||
|
||||
// remove old keys
|
||||
if ( aConf.ReadKey("KeyCodes + Classes").Len() != 0 ||
|
||||
aConf.ReadKey("KeyCodes + Classes + Res_Type").Len() != 0 )
|
||||
if ( aConf.ReadKey("KeyCodes + Classes").getLength() != 0 ||
|
||||
aConf.ReadKey("KeyCodes + Classes + Res_Type").getLength() != 0 )
|
||||
{
|
||||
aConf.DeleteKey("KeyCodes + Classes + Res_Type");
|
||||
aConf.DeleteKey("KeyCodes + Classes");
|
||||
|
Reference in New Issue
Block a user