summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-03-20 13:02:46 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-03-20 13:05:35 +0100
commit2d9ce9191da681e4fd9f1d08933ca5117c56601b (patch)
treeeecfa2690dcaffca064cc5712d7a5c9662a32b87 /sw
parentdc06576d8809760b79f771831bed3122878e0505 (diff)
Remove uses of rtl::OUString::compareToAscii(asciiStr, maxLength)
...which is a confusing overload with unexpectedly different semantics from the one-parameter form. In preparation of marking it as deprecated. Change-Id: I4f176995546ae583fc570d770647ffc315eecc75
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/uno/unodispatch.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/ui/uno/unodispatch.cxx b/sw/source/ui/uno/unodispatch.cxx
index dd2089f14103..21fe1165d414 100644
--- a/sw/source/ui/uno/unodispatch.cxx
+++ b/sw/source/ui/uno/unodispatch.cxx
@@ -35,7 +35,6 @@ using namespace ::com::sun::star;
using ::rtl::OUString;
-static const char* cURLStart = ".uno:DataSourceBrowser/";
static const char* cURLFormLetter = ".uno:DataSourceBrowser/FormLetter";
static const char* cURLInsertContent = ".uno:DataSourceBrowser/InsertContent";//data into fields
static const char* cURLInsertColumns = ".uno:DataSourceBrowser/InsertColumns";//data into text
@@ -71,7 +70,7 @@ uno::Reference< frame::XDispatch > SwXDispatchProviderInterceptor::queryDispatch
DispatchMutexLock_Impl aLock(*this);
uno::Reference< frame::XDispatch> xResult;
// create some dispatch ...
- if(m_pView && !aURL.Complete.compareToAscii(cURLStart, 23))
+ if(m_pView && aURL.Complete.startsWith(".uno:DataSourceBrowser/"))
{
if(!aURL.Complete.compareToAscii(cURLFormLetter) ||
!aURL.Complete.compareToAscii(cURLInsertContent) ||