diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-12 17:52:47 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-12 17:52:47 +0100 |
commit | d2177cded64d92a8c6f068192d1c4b023d49edf3 (patch) | |
tree | 3f1db32788aaf1a13bed18d211dd0404c1e81844 /sfx2/source/sidebar/Context.cxx | |
parent | 58138d117dae2a2778e5e62ca20066744d42804d (diff) |
sfx2: Use appropriate OUString functions on string constants
Change-Id: I28ca30da980b81dbf3328495291916afca654999
Diffstat (limited to 'sfx2/source/sidebar/Context.cxx')
-rw-r--r-- | sfx2/source/sidebar/Context.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/sidebar/Context.cxx b/sfx2/source/sidebar/Context.cxx index df0d43c0dfcf..ab6dadfe29f4 100644 --- a/sfx2/source/sidebar/Context.cxx +++ b/sfx2/source/sidebar/Context.cxx @@ -51,11 +51,11 @@ Context::Context ( sal_Int32 Context::EvaluateMatch ( const Context& rOther) const { - const bool bApplicationNameIsAny (rOther.msApplication.equalsAscii(AnyApplicationName)); + const bool bApplicationNameIsAny (rOther.msApplication == AnyApplicationName); if (rOther.msApplication.equals(msApplication) || bApplicationNameIsAny) { // Application name matches. - const bool bContextNameIsAny (rOther.msContext.equalsAscii(AnyContextName)); + const bool bContextNameIsAny (rOther.msContext == AnyContextName); if (rOther.msContext.equals(msContext) || bContextNameIsAny) { // Context name matches. |