summaryrefslogtreecommitdiff
path: root/idlc/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-03-27 08:44:52 +0200
committerNoel Grandin <noel@peralex.com>2015-03-27 10:51:08 +0200
commitaa7a829e7df30a5356fca2bae0bb7eb51367f08d (patch)
tree26e994aa1f5635c63547198fcc4b07599b3d8a90 /idlc/inc
parent44790193a74923d42228277ed46723ba9e225136 (diff)
loplugin:staticfunction
Change-Id: Id796b799f8e2fcc3eae98d43800c5e31fec27fef
Diffstat (limited to 'idlc/inc')
-rw-r--r--idlc/inc/idlc/errorhandler.hxx32
-rw-r--r--idlc/inc/idlc/options.hxx2
2 files changed, 17 insertions, 17 deletions
diff --git a/idlc/inc/idlc/errorhandler.hxx b/idlc/inc/idlc/errorhandler.hxx
index 1e7e7285d0d8..ff176a0d7016 100644
--- a/idlc/inc/idlc/errorhandler.hxx
+++ b/idlc/inc/idlc/errorhandler.hxx
@@ -90,41 +90,41 @@ class ErrorHandler
{
public:
// Report errors with varying numbers of arguments
- void error0(ErrorCode e);
- void error1(ErrorCode e, AstDeclaration const * d);
- void error2(
+ static void error0(ErrorCode e);
+ static void error1(ErrorCode e, AstDeclaration const * d);
+ static void error2(
ErrorCode e, AstDeclaration const * d1, AstDeclaration const * d2);
- void error3(ErrorCode e, AstDeclaration* d1, AstDeclaration* d2, AstDeclaration* d3);
+ static void error3(ErrorCode e, AstDeclaration* d1, AstDeclaration* d2, AstDeclaration* d3);
// Warning
- void warning0(WarningCode e, const sal_Char* warningmsg);
+ static void warning0(WarningCode e, const sal_Char* warningmsg);
// Report a syntax error in IDL input
- void syntaxError(ParseState state, sal_Int32 lineNumber, const sal_Char* errmsg);
+ static void syntaxError(ParseState state, sal_Int32 lineNumber, const sal_Char* errmsg);
// Report an unsuccessful coercion attempt
- void coercionError(AstExpression *pExpr, ExprType et);
+ static void coercionError(AstExpression *pExpr, ExprType et);
// Report a failed name lookup attempt
- void lookupError(const OString& n);
+ static void lookupError(const OString& n);
// Report a failed name lookup attempt
- void lookupError(ErrorCode e, const OString& n, AstDeclaration* pScope);
+ static void lookupError(ErrorCode e, const OString& n, AstDeclaration* pScope);
// Report a type error
- void noTypeError(AstDeclaration const * pDecl);
+ static void noTypeError(AstDeclaration const * pDecl);
- void inheritanceError(NodeType nodeType, const OString* name, AstDeclaration* pDecl);
+ static void inheritanceError(NodeType nodeType, const OString* name, AstDeclaration* pDecl);
- void flagError(ErrorCode e, sal_uInt32 flag);
+ static void flagError(ErrorCode e, sal_uInt32 flag);
- void forwardLookupError(const AstDeclaration* pForward, const OString& name);
+ static void forwardLookupError(const AstDeclaration* pForward, const OString& name);
- void constantExpected(AstDeclaration* pDecl, const OString& name);
+ static void constantExpected(AstDeclaration* pDecl, const OString& name);
- void evalError(AstExpression* pExpr);
+ static void evalError(AstExpression* pExpr);
- bool checkPublished(AstDeclaration const * decl, bool bOptiional=false);
+ static bool checkPublished(AstDeclaration const * decl, bool bOptiional=false);
};
#endif // INCLUDED_IDLC_INC_IDLC_ERRORHANDLER_HXX
diff --git a/idlc/inc/idlc/options.hxx b/idlc/inc/idlc/options.hxx
index ccd2d01639d5..2f4c02dcd404 100644
--- a/idlc/inc/idlc/options.hxx
+++ b/idlc/inc/idlc/options.hxx
@@ -47,7 +47,7 @@ public:
bool initOptions(std::vector< std::string > & rArgs)
throw(IllegalArgument);
- bool badOption(char const * reason, std::string const & rArg)
+ static bool badOption(char const * reason, std::string const & rArg)
throw(IllegalArgument);
bool setOption(char const * option, std::string const & rArg);