diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-11-08 16:54:20 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-11-09 09:06:22 +0100 |
commit | 4897083c120fbe7ea2fbe14f0f7d2cb293b79fa8 (patch) | |
tree | 6e5a9971937dab125b63fba166d64ad3c4cf939e /desktop | |
parent | a6f26b87a0c6b0bb7a92ed0878e7aaa57ec64260 (diff) |
Move "Acceptor already exists" warning to where it belongs
036ed05fe35044e49a91e12b6a8e5f36a5b9c4c2 "MWS_SRX644: migrate branch mws_srx644
-> HEAD" had added this with misleading indentation, so it (apparently
accidentally) did not pertain to the "aAcceptString was found in the map of
already existing acceptors" case. Then 4acffc240b4845beedfe66eaa571b814d65e2e57
"catch by const reference" fixed the indentation, but left the warning at the
apparently wrong place.
Change-Id: Ie73368bc1294e9b716e3fca75e12363cb6240fdd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159157
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/appinit.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/desktop/source/app/appinit.cxx b/desktop/source/app/appinit.cxx index 926ad1bfa6b7..6eca704c7fb9 100644 --- a/desktop/source/app/appinit.cxx +++ b/desktop/source/app/appinit.cxx @@ -138,7 +138,11 @@ void Desktop::createAcceptor(const OUString& aAcceptString) AcceptorMap &rMap = acceptorMap(); AcceptorMap::const_iterator pIter = rMap.find(aAcceptString); if (pIter != rMap.end() ) + { + // there is already an acceptor with this description + SAL_WARN( "desktop.app", "Acceptor already exists."); return; + } Sequence< Any > aSeq{ Any(aAcceptString), Any(bAccept) }; Reference< XComponentContext > xContext = ::comphelper::getProcessComponentContext(); @@ -161,8 +165,7 @@ void Desktop::createAcceptor(const OUString& aAcceptString) } else { - // there is already an acceptor with this description - SAL_WARN( "desktop.app", "Acceptor already exists."); + SAL_WARN( "desktop.app", "Acceptor could not be created"); } } |