diff options
author | David Tardon <dtardon@redhat.com> | 2011-01-17 16:18:31 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2011-02-19 07:56:26 +0100 |
commit | e25e59639e1c90b9fc238130db003de671cfb734 (patch) | |
tree | 9104704a63fdd858016c3e1551c252ffe403074d /xmlhelp | |
parent | 78b70af5708b04fc1913ed8d44ff953a02b3f1f0 (diff) |
add RTL_CONSTASCII_STRINGPARAM for string literals
Diffstat (limited to 'xmlhelp')
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/urlparameter.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.hxx b/xmlhelp/source/cxxhelp/provider/urlparameter.hxx index 1ed17736d2..dead76953e 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; } |