diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-17 12:41:24 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-28 09:25:32 +0200 |
commit | a4d53515faac28e7749b0c4d9a4e6b59aad63225 (patch) | |
tree | c8e48082dff8fc9e9d62944ccd6befb8b9eb3af7 /sd/source/ui/remotecontrol | |
parent | 9376df3c03d361a4c01493066db2a11a770d6cc9 (diff) |
loplugin:ostr in sd/../ui
Change-Id: I19acde24fd8a4014807318d97433b81814cadd75
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167768
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/remotecontrol')
-rw-r--r-- | sd/source/ui/remotecontrol/ImagePreparer.cxx | 12 | ||||
-rw-r--r-- | sd/source/ui/remotecontrol/Receiver.cxx | 8 | ||||
-rw-r--r-- | sd/source/ui/remotecontrol/Server.cxx | 6 |
3 files changed, 13 insertions, 13 deletions
diff --git a/sd/source/ui/remotecontrol/ImagePreparer.cxx b/sd/source/ui/remotecontrol/ImagePreparer.cxx index c3738d894217..f7556f5b0b15 100644 --- a/sd/source/ui/remotecontrol/ImagePreparer.cxx +++ b/sd/source/ui/remotecontrol/ImagePreparer.cxx @@ -119,15 +119,15 @@ uno::Sequence<sal_Int8> ImagePreparer::preparePreview( xFilter->setSourceDocument( xSourceDoc ); uno::Sequence< beans::PropertyValue > aFilterData{ - comphelper::makePropertyValue("PixelWidth", aWidth), - comphelper::makePropertyValue("PixelHeight", aHeight), - comphelper::makePropertyValue("ColorMode", sal_Int32(0)) // 0: Color, 1: B&W + comphelper::makePropertyValue(u"PixelWidth"_ustr, aWidth), + comphelper::makePropertyValue(u"PixelHeight"_ustr, aHeight), + comphelper::makePropertyValue(u"ColorMode"_ustr, sal_Int32(0)) // 0: Color, 1: B&W }; uno::Sequence< beans::PropertyValue > aProps{ - comphelper::makePropertyValue("MediaType", OUString( "image/png" )), - comphelper::makePropertyValue("URL", aFileURL), - comphelper::makePropertyValue("FilterData", aFilterData) + comphelper::makePropertyValue(u"MediaType"_ustr, u"image/png"_ustr), + comphelper::makePropertyValue(u"URL"_ustr, aFileURL), + comphelper::makePropertyValue(u"FilterData"_ustr, aFilterData) }; xFilter->filter( aProps ); diff --git a/sd/source/ui/remotecontrol/Receiver.cxx b/sd/source/ui/remotecontrol/Receiver.cxx index b4a10c70bdef..23ac8e9aa4b2 100644 --- a/sd/source/ui/remotecontrol/Receiver.cxx +++ b/sd/source/ui/remotecontrol/Receiver.cxx @@ -149,7 +149,7 @@ void Receiver::executeCommand( const std::vector<OString> &aCommand ) try { // std::cerr << "pointer_coordination in the is" << std::endl; - xSlideShow->setProperty(beans::PropertyValue("PointerPosition", -1, Any(pos), + xSlideShow->setProperty(beans::PropertyValue(u"PointerPosition"_ustr, -1, Any(pos), beans::PropertyState_DIRECT_VALUE)); } catch (Exception&) @@ -159,7 +159,7 @@ void Receiver::executeCommand( const std::vector<OString> &aCommand ) try { - xSlideShow->setProperty(beans::PropertyValue("PointerVisible", -1, Any(true), + xSlideShow->setProperty(beans::PropertyValue(u"PointerVisible"_ustr, -1, Any(true), beans::PropertyState_DIRECT_VALUE)); } catch (Exception&) @@ -176,7 +176,7 @@ void Receiver::executeCommand( const std::vector<OString> &aCommand ) if (xSlideShow.is()) try { xSlideShow->setProperty( - beans::PropertyValue( "PointerVisible" , + beans::PropertyValue( u"PointerVisible"_ustr , -1, Any( false ), beans::PropertyState_DIRECT_VALUE ) ); @@ -205,7 +205,7 @@ void Receiver::executeCommand( const std::vector<OString> &aCommand ) if (xSlideShow.is()) try { xSlideShow->setProperty( - beans::PropertyValue( "PointerPosition" , + beans::PropertyValue( u"PointerPosition"_ustr , -1, Any( pos ), beans::PropertyState_DIRECT_VALUE ) ); diff --git a/sd/source/ui/remotecontrol/Server.cxx b/sd/source/ui/remotecontrol/Server.cxx index d20a14513e83..aec4fb1be445 100644 --- a/sd/source/ui/remotecontrol/Server.cxx +++ b/sd/source/ui/remotecontrol/Server.cxx @@ -76,7 +76,7 @@ IPRemoteServer::~IPRemoteServer() void IPRemoteServer::execute() { SAL_INFO("sdremote", "IPRemoteServer::execute called"); - osl::SocketAddr aAddr( "0.0.0.0", PORT ); + osl::SocketAddr aAddr( u"0.0.0.0"_ustr, PORT ); if ( !mSocket.bind( aAddr ) ) { SAL_WARN( "sdremote", "bind failed" << mSocket.getErrorAsString() ); @@ -157,7 +157,7 @@ void IPRemoteServer::handleAcceptedConnection( BufferedStreamSocket *pSocket ) if ( rName == pClient->mName ) { Reference<XNameAccess> xSetItem( xConfig->getByName(rName), UNO_QUERY ); - Any axPin(xSetItem->getByName("PIN")); + Any axPin(xSetItem->getByName(u"PIN"_ustr)); OUString sPin; axPin >>= sPin; @@ -280,7 +280,7 @@ bool IPRemoteServer::connectClient(const std::shared_ptr<ClientInfo>& pClient, s else xConfig->insertByName( apClient->mName, Any( xChild ) ); aValue <<= apClient->mPin; - xChild->replaceByName("PIN", aValue); + xChild->replaceByName(u"PIN"_ustr, aValue); aChanges->commit(); } |