diff options
Diffstat (limited to 'idlc/source/astscope.cxx')
-rw-r--r-- | idlc/source/astscope.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/idlc/source/astscope.cxx b/idlc/source/astscope.cxx index 1c0d4fd84101..ba06611feb1a 100644 --- a/idlc/source/astscope.cxx +++ b/idlc/source/astscope.cxx @@ -25,13 +25,9 @@ using namespace ::rtl; -sal_Bool isGlobal(const OString& scopedName) +bool isGlobal(const OString& scopedName) { - if (scopedName.isEmpty() || (scopedName.indexOf(':') == 0)) - { - return sal_True; - } - return sal_False; + return scopedName.isEmpty() || scopedName.startsWith(":"); } AstScope::AstScope(NodeType nodeType) |