diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-03-20 13:02:46 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-03-20 13:05:35 +0100 |
commit | 2d9ce9191da681e4fd9f1d08933ca5117c56601b (patch) | |
tree | eecfa2690dcaffca064cc5712d7a5c9662a32b87 /stoc | |
parent | dc06576d8809760b79f771831bed3122878e0505 (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 'stoc')
-rw-r--r-- | stoc/source/security/permissions.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stoc/source/security/permissions.cxx b/stoc/source/security/permissions.cxx index e97e379ef56a..c6edcf2004db 100644 --- a/stoc/source/security/permissions.cxx +++ b/stoc/source/security/permissions.cxx @@ -339,7 +339,7 @@ FilePermission::FilePermission( buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("/-") ); m_url = buf.makeStringAndClear(); } - else if (0 != m_url.compareToAscii( RTL_CONSTASCII_STRINGPARAM("file:///") )) + else if (!m_url.startsWith("file:///")) { // relative path OUString out; |