summaryrefslogtreecommitdiffstats
path: root/kdecore/kstartupinfo.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-06 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-06 19:48:06 +0000
commit0761ef3c62e43ffed5a81854b7b45e579016f5b7 (patch)
tree5aa48590c295ad6d29aafe4782d7f762f2ee38d3 /kdecore/kstartupinfo.cpp
parentcb4a5d685bd5a3129e1edb8bac1ee6c41939fe7b (diff)
downloadtdelibs-0761ef3c62e43ffed5a81854b7b45e579016f5b7.tar.gz
tdelibs-0761ef3c62e43ffed5a81854b7b45e579016f5b7.zip
Locked down more ambiguous datatypes
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1160010 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore/kstartupinfo.cpp')
-rw-r--r--kdecore/kstartupinfo.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kdecore/kstartupinfo.cpp b/kdecore/kstartupinfo.cpp
index 40f06127e..673e5e6ab 100644
--- a/kdecore/kstartupinfo.cpp
+++ b/kdecore/kstartupinfo.cpp
@@ -1140,9 +1140,9 @@ TQString KStartupInfoData::to_text() const
ret += TQString::fromLatin1( " DESKTOP=%1" )
.arg( d->desktop == NET::OnAllDesktops ? NET::OnAllDesktops : d->desktop - 1 ); // spec counts from 0
if( !d->wmclass.isEmpty())
- ret += TQString::fromLatin1( " WMCLASS=\"%1\"" ).arg( d->wmclass );
+ ret += TQString::fromLatin1( " WMCLASS=\"%1\"" ).arg( QString(d->wmclass) );
if( !d->hostname.isEmpty())
- ret += TQString::fromLatin1( " HOSTNAME=%1" ).arg( d->hostname );
+ ret += TQString::fromLatin1( " HOSTNAME=%1" ).arg( QString(d->hostname) );
for( TQValueList< pid_t >::ConstIterator it = d->pids.begin();
it != d->pids.end();
++it )
@@ -1466,7 +1466,7 @@ static
TQString get_str( const TQString& item_P )
{
unsigned int pos = item_P.find( '=' );
- if( item_P.length() > pos + 2 && item_P[ pos + 1 ] == '\"' )
+ if( item_P.length() > pos + 2 && item_P[ pos + 1 ] == (QChar)'\"' )
{
int pos2 = item_P.left( pos + 2 ).find( '\"' );
if( pos2 < 0 )
@@ -1522,8 +1522,8 @@ static TQString escape_str( const TQString& str_P )
pos < str_P.length();
++pos )
{
- if( str_P[ pos ] == '\\'
- || str_P[ pos ] == '"' )
+ if( str_P[ pos ] == (QChar)'\\'
+ || str_P[ pos ] == (QChar)'"' )
ret += '\\';
ret += str_P[ pos ];
}