From f2262ff73708a6c1d514caf37fc90b0f0f99e789 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Mon, 17 Jan 2011 16:18:31 +0100 Subject: add RTL_CONSTASCII_STRINGPARAM for string literals --- xmlhelp/source/cxxhelp/provider/urlparameter.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xmlhelp') 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; } -- cgit v1.2.3