summaryrefslogtreecommitdiff
path: root/sd/source/ui/remotecontrol/Server.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-14 09:24:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-14 10:12:31 +0200
commitd7e06e46acc2ee17101cef63e59b9f5efcbfab14 (patch)
tree7f2ee4381babadafaaaf94e1ca210e1d98e5aa14 /sd/source/ui/remotecontrol/Server.cxx
parente47fda7d4759f4ac911c882881dba1eee539726c (diff)
use more OUString::operator== in scaddins..sdext
Change-Id: I8bc5c925f940283bc54698bbcba77efcca883273 Reviewed-on: https://gerrit.libreoffice.org/39937 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/remotecontrol/Server.cxx')
-rw-r--r--sd/source/ui/remotecontrol/Server.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/remotecontrol/Server.cxx b/sd/source/ui/remotecontrol/Server.cxx
index 7382ad00a80a..125b8d832108 100644
--- a/sd/source/ui/remotecontrol/Server.cxx
+++ b/sd/source/ui/remotecontrol/Server.cxx
@@ -146,14 +146,14 @@ void RemoteServer::execute()
bool aFound = false;
for ( int i = 0; i < aNames.getLength(); i++ )
{
- if ( aNames[i].equals( pClient->mName ) )
+ if ( aNames[i] == pClient->mName )
{
Reference<XNameAccess> xSetItem( xConfig->getByName(aNames[i]), UNO_QUERY );
Any axPin(xSetItem->getByName("PIN"));
OUString sPin;
axPin >>= sPin;
- if ( sPin.equals( pClient->mPin ) ) {
+ if ( sPin == pClient->mPin ) {
SAL_INFO( "sdremote", "client found on validated list -- connecting" );
connectClient( pClient, sPin );
aFound = true;
@@ -281,7 +281,7 @@ bool RemoteServer::connectClient( const std::shared_ptr< ClientInfo >& pClient,
return false;
}
- if ( apClient->mPin.equals( aPin ) )
+ if ( apClient->mPin == aPin )
{
// Save in settings first
std::shared_ptr< ConfigurationChanges > aChanges = ConfigurationChanges::create();
@@ -298,7 +298,7 @@ bool RemoteServer::connectClient( const std::shared_ptr< ClientInfo >& pClient,
Sequence< OUString > aNames = xConfig->getElementNames();
for ( int i = 0; i < aNames.getLength(); i++ )
{
- if ( aNames[i].equals( apClient->mName ) )
+ if ( aNames[i] == apClient->mName )
{
xConfig->replaceByName( apClient->mName, makeAny( xChild ) );
aSaved = true;