summaryrefslogtreecommitdiff
path: root/idlc/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-10-21 18:04:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-23 08:15:50 +0200
commit2559a2a0567dbc392ceb34057c0dc5078bbb9474 (patch)
tree5293bec5148067acd1c0b3261c96e7c0c993ee1b /idlc/source
parent87a9979c8938b800aab6e35903d60d24892e7f2e (diff)
loplugin:constmethod in cppu,cppuhelper,idlc
Change-Id: I9138b7e5d53c30488f99e9f9b9fe3f98c8d6858b Reviewed-on: https://gerrit.libreoffice.org/43583 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'idlc/source')
-rw-r--r--idlc/source/astdump.cxx4
-rw-r--r--idlc/source/astscope.cxx4
-rw-r--r--idlc/source/fehelper.cxx2
-rw-r--r--idlc/source/options.cxx6
4 files changed, 8 insertions, 8 deletions
diff --git a/idlc/source/astdump.cxx b/idlc/source/astdump.cxx
index 34d9a16bf8a6..75e28ea7d789 100644
--- a/idlc/source/astdump.cxx
+++ b/idlc/source/astdump.cxx
@@ -322,7 +322,7 @@ bool AstService::dump(RegistryKey& rKey)
}
bool AstAttribute::dumpBlob(
- typereg::Writer & rBlob, sal_uInt16 index, sal_uInt16 * methodIndex)
+ typereg::Writer & rBlob, sal_uInt16 index, sal_uInt16 * methodIndex) const
{
RTFieldAccess accessMode = RTFieldAccess::INVALID;
@@ -383,7 +383,7 @@ bool AstAttribute::dumpBlob(
void AstAttribute::dumpExceptions(
typereg::Writer & writer, OUString const & documentation,
- DeclList const & exceptions, RTMethodMode flags, sal_uInt16 * methodIndex)
+ DeclList const & exceptions, RTMethodMode flags, sal_uInt16 * methodIndex) const
{
if (!exceptions.empty()) {
OSL_ASSERT(methodIndex != nullptr);
diff --git a/idlc/source/astscope.cxx b/idlc/source/astscope.cxx
index c90870ebeeff..86c150fa718f 100644
--- a/idlc/source/astscope.cxx
+++ b/idlc/source/astscope.cxx
@@ -83,7 +83,7 @@ AstDeclaration* AstScope::addDeclaration(AstDeclaration* pDecl)
return pDecl;
}
-sal_uInt16 AstScope::getNodeCount(NodeType nodeType)
+sal_uInt16 AstScope::getNodeCount(NodeType nodeType) const
{
DeclList::const_iterator iter = getIteratorBegin();
DeclList::const_iterator end = getIteratorEnd();
@@ -319,7 +319,7 @@ AstDeclaration* AstScope::lookupPrimitiveType(ExprType type)
return nullptr;
}
-AstDeclaration* AstScope::lookupForAdd(AstDeclaration const * pDecl)
+AstDeclaration* AstScope::lookupForAdd(AstDeclaration const * pDecl) const
{
if ( !pDecl )
return nullptr;
diff --git a/idlc/source/fehelper.cxx b/idlc/source/fehelper.cxx
index 3a3e5324e303..168cf56fec7f 100644
--- a/idlc/source/fehelper.cxx
+++ b/idlc/source/fehelper.cxx
@@ -30,7 +30,7 @@ FeDeclarator::~FeDeclarator()
{
}
-bool FeDeclarator::checkType(AstDeclaration const * type)
+bool FeDeclarator::checkType(AstDeclaration const * type) const
{
OString tmp(m_name);
sal_Int32 count = m_name.lastIndexOf( ':' );
diff --git a/idlc/source/options.cxx b/idlc/source/options.cxx
index 58908c9f38ad..92dcb6dbf783 100644
--- a/idlc/source/options.cxx
+++ b/idlc/source/options.cxx
@@ -368,7 +368,7 @@ bool Options::initOptions(std::vector< std::string > & rArgs)
return true;
}
-OString Options::prepareHelp()
+OString Options::prepareHelp() const
{
OString help("\nusing: ");
help += m_program + " [-options] <file_1> ... <file_n> | @<filename> | -stdin\n";
@@ -402,7 +402,7 @@ OString Options::prepareHelp()
return help;
}
-OString Options::prepareVersion()
+OString Options::prepareVersion() const
{
OString version(m_program);
version += " Version 1.1\n\n";
@@ -410,7 +410,7 @@ OString Options::prepareVersion()
}
-bool Options::isValid(const OString& option)
+bool Options::isValid(const OString& option) const
{
return (m_options.count(option) > 0);
}