diff options
Diffstat (limited to 'idlc/source/astdeclaration.cxx')
-rw-r--r-- | idlc/source/astdeclaration.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/idlc/source/astdeclaration.cxx b/idlc/source/astdeclaration.cxx index e8df3a6d5550..60f862639d8c 100644 --- a/idlc/source/astdeclaration.cxx +++ b/idlc/source/astdeclaration.cxx @@ -45,9 +45,9 @@ AstDeclaration::AstDeclaration(NodeType type, const OString& name, AstScope* pSc : m_localName(name) , m_pScope(pScope) , m_nodeType(type) - , m_bImported(sal_False) - , m_bIsAdded(sal_False) - , m_bInMainFile(sal_False) + , m_bImported(false) + , m_bIsAdded(false) + , m_bInMainFile(false) , m_bPredefined(false) { if ( m_pScope ) @@ -69,11 +69,11 @@ AstDeclaration::AstDeclaration(NodeType type, const OString& name, AstScope* pSc if ( idlc()->getFileName() == idlc()->getRealFileName() ) { m_fileName = idlc()->getMainFileName(); - m_bInMainFile = sal_True; + m_bInMainFile = true; } else { m_fileName = idlc()->getFileName(); - m_bImported = sal_True; + m_bImported = true; } m_documentation = idlc()->processDocumentation(); @@ -93,7 +93,7 @@ void AstDeclaration::setPredefined(bool bPredefined) if ( m_bPredefined ) { m_fileName = OString(); - m_bInMainFile = sal_False; + m_bInMainFile = false; } } @@ -147,19 +147,19 @@ bool AstDeclaration::isType() const { } } -sal_Bool AstDeclaration::hasAncestor(AstDeclaration* pDecl) +bool AstDeclaration::hasAncestor(AstDeclaration* pDecl) { if (this == pDecl) - return sal_True; + return true; if ( !m_pScope ) - return sal_False; + return false; return scopeAsDecl(m_pScope)->hasAncestor(pDecl); } -sal_Bool AstDeclaration::dump(RegistryKey& rKey) +bool AstDeclaration::dump(RegistryKey& rKey) { AstScope* pScope = declAsScope(this); - sal_Bool bRet = sal_True; + bool bRet = true; if ( pScope ) { |