summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-01-17 16:15:04 +0100
committerDavid Tardon <dtardon@redhat.com>2011-02-19 07:56:26 +0100
commit78b70af5708b04fc1913ed8d44ff953a02b3f1f0 (patch)
treed20af0a210681a7e2f6b1bd092c90f4c10682c13 /xmlhelp
parent3d32a615249ea3336688f7bec22b78da0e3eb525 (diff)
test length instead of comparing with ""
Diffstat (limited to 'xmlhelp')
-rw-r--r--xmlhelp/source/cxxhelp/provider/urlparameter.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.hxx b/xmlhelp/source/cxxhelp/provider/urlparameter.hxx
index 0a2134a25f..1ed17736d2 100644
--- a/xmlhelp/source/cxxhelp/provider/urlparameter.hxx
+++ b/xmlhelp/source/cxxhelp/provider/urlparameter.hxx
@@ -128,11 +128,11 @@ namespace chelp {
bool isPicture() const { return m_aModule.compareToAscii("picture") == 0; }
bool isActive() const { return m_aActive.getLength() > 0 && m_aActive.compareToAscii( "true" ) == 0; }
- bool isQuery() const { return m_aId.compareToAscii("") == 0 && m_aQuery.compareToAscii("") != 0; }
+ bool isQuery() const { return m_aId.getLength() == 0 && m_aQuery.getLength() != 0; }
bool isEntryForModule() const { return m_aId.compareToAscii("start") == 0 || m_bStart; }
- bool isFile() const { return m_aId.compareToAscii( "" ) != 0; }
- bool isModule() const { return m_aId.compareToAscii("") == 0 && m_aModule.compareToAscii("") != 0; }
- bool isRoot() const { return m_aModule.compareToAscii("") == 0; }
+ 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; }
bool isErrorDocument();
rtl::OUString get_url() const { return m_aURL; }