summaryrefslogtreecommitdiff
path: root/vcl/unx/kde/UnxCommandThread.cxx
diff options
context:
space:
mode:
authorSzabolcs Dezsi <dezsiszabi@hotmail.com>2012-04-06 14:28:18 +0200
committerJan Holesovsky <kendy@suse.cz>2012-04-06 14:30:05 +0200
commit8a01ee624318ac08800af89d988971114637a04e (patch)
treee4acf35e42ab0c1d0b593bd8970fa2c435f90c95 /vcl/unx/kde/UnxCommandThread.cxx
parent6cf547f02c79278430ee75483a3128076cfc609e (diff)
Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used: find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\) ) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
Diffstat (limited to 'vcl/unx/kde/UnxCommandThread.cxx')
-rw-r--r--vcl/unx/kde/UnxCommandThread.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/vcl/unx/kde/UnxCommandThread.cxx b/vcl/unx/kde/UnxCommandThread.cxx
index 8f7ee3d0c21c..ace8c44b405c 100644
--- a/vcl/unx/kde/UnxCommandThread.cxx
+++ b/vcl/unx/kde/UnxCommandThread.cxx
@@ -188,27 +188,27 @@ void SAL_CALL UnxFilePickerCommandThread::handleCommand( const ::rtl::OUString &
::rtl::OUString aCommandName = aList.front();
aList.pop_front();
- if ( aCommandName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "accept" ) ) )
+ if ( aCommandName == "accept" )
{
m_aResult = sal_True;
m_aExecCondition.set();
}
- else if ( aCommandName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "reject" ) ) )
+ else if ( aCommandName == "reject" )
{
m_aResult = sal_False;
m_aExecCondition.set();
}
- else if ( aCommandName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "fileSelectionChanged" ) ) )
+ else if ( aCommandName == "fileSelectionChanged" )
{
if ( m_pNotifyThread )
m_pNotifyThread->fileSelectionChanged();
}
- else if ( aCommandName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "files" ) ) )
+ else if ( aCommandName == "files" )
{
m_aGetFiles = aList;
m_aGetFilesCondition.set();
}
- else if ( aCommandName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "value" ) ) )
+ else if ( aCommandName == "value" )
{
::rtl::OUString aType;
if ( !aList.empty() )
@@ -217,14 +217,14 @@ void SAL_CALL UnxFilePickerCommandThread::handleCommand( const ::rtl::OUString &
aList.pop_front();
}
- if ( aType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "bool" ) ) )
+ if ( aType == "bool" )
{
sal_Bool bValue = !aList.empty() && aList.front().equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("true"));
m_aGetValue <<= bValue;
m_aGetValueCondition.set();
}
- else if ( aType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "int" ) ) )
+ else if ( aType == "int" )
{
sal_Int32 nValue = 0;
if ( !aList.empty() )
@@ -233,7 +233,7 @@ void SAL_CALL UnxFilePickerCommandThread::handleCommand( const ::rtl::OUString &
m_aGetValue <<= nValue;
m_aGetValueCondition.set();
}
- else if ( aType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "string" ) ) )
+ else if ( aType == "string" )
{
::rtl::OUString aValue;
if ( !aList.empty() )
@@ -242,7 +242,7 @@ void SAL_CALL UnxFilePickerCommandThread::handleCommand( const ::rtl::OUString &
m_aGetValue <<= aValue;
m_aGetValueCondition.set();
}
- else if ( aType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "stringList" ) ) )
+ else if ( aType == "stringList" )
{
uno::Sequence< ::rtl::OUString > aSequence( aList.size() );
sal_Int32 nIdx = 0;
@@ -258,12 +258,12 @@ void SAL_CALL UnxFilePickerCommandThread::handleCommand( const ::rtl::OUString &
m_aGetValueCondition.set();
}
}
- else if ( aCommandName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "currentFilter" ) ) )
+ else if ( aCommandName == "currentFilter" )
{
m_aGetCurrentFilter = aList.empty()? ::rtl::OUString(): aList.front();
m_aGetCurrentFilterCondition.set();
}
- else if ( aCommandName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "currentDirectory" ) ) )
+ else if ( aCommandName == "currentDirectory" )
{
m_aGetDirectory = aList.empty()? ::rtl::OUString(): aList.front();
m_aGetDirectoryCondition.set();