summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-01-17 16:18:31 +0100
committerDavid Tardon <dtardon@redhat.com>2011-02-19 07:56:26 +0100
commitf2262ff73708a6c1d514caf37fc90b0f0f99e789 (patch)
tree3b8afa0ea7793820e05e9b6440216a665c97b471 /xmlhelp
parent11a38f8e1c381f5755b69c76cde13386650a3f4a (diff)
add RTL_CONSTASCII_STRINGPARAM for string literals
Diffstat (limited to 'xmlhelp')
-rw-r--r--xmlhelp/source/cxxhelp/provider/urlparameter.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.hxx b/xmlhelp/source/cxxhelp/provider/urlparameter.hxx
index dfd8808fe82e..2279378e2a94 100644
--- a/xmlhelp/source/cxxhelp/provider/urlparameter.hxx
+++ b/xmlhelp/source/cxxhelp/provider/urlparameter.hxx
@@ -126,10 +126,10 @@ namespace chelp {
Databases* pDatabases )
throw( com::sun::star::ucb::IllegalIdentifierException );
- bool isPicture() const { return m_aModule.compareToAscii("picture") == 0; }
- bool isActive() const { return m_aActive.getLength() > 0 && m_aActive.compareToAscii( "true" ) == 0; }
+ bool isPicture() const { return m_aModule.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("picture")); }
+ bool isActive() const { return m_aActive.getLength() > 0 && m_aActive.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("true")); }
bool isQuery() const { return m_aId.getLength() == 0 && m_aQuery.getLength() != 0; }
- bool isEntryForModule() const { return m_aId.compareToAscii("start") == 0 || m_bStart; }
+ bool isEntryForModule() const { return m_aId.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("start")) || m_bStart; }
bool isFile() const { return m_aId.getLength() != 0; }
bool isModule() const { return m_aId.getLength() == 0 && m_aModule.getLength() != 0; }
bool isRoot() const { return m_aModule.getLength() == 0; }