loplugin:constantfunction: vcl/unx/gtk3
Change-Id: Ieedf89bebb59e783dfe13ef2d5ae7ba3347cdc62
This commit is contained in:
@@ -128,6 +128,10 @@ bool ConstantFunction::VisitFunctionDecl(const FunctionDecl * pFunctionDecl) {
|
|||||||
if (aFileName == SRCDIR "/filter/source/svg/svgreader.cxx") {
|
if (aFileName == SRCDIR "/filter/source/svg/svgreader.cxx") {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
// vcl/unx/gtk3 re-using vcl/unx/gtk:
|
||||||
|
if (aFileName.find("/../../gtk/") != std::string::npos) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
// used by code generated by python
|
// used by code generated by python
|
||||||
if (getFilename(pFunctionDecl->getCanonicalDecl()->getLocStart()) == SRCDIR "/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx") {
|
if (getFilename(pFunctionDecl->getCanonicalDecl()->getLocStart()) == SRCDIR "/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx") {
|
||||||
return true;
|
return true;
|
||||||
@@ -400,6 +404,12 @@ bool ConstantFunction::VisitFunctionDecl(const FunctionDecl * pFunctionDecl) {
|
|||||||
if (aFunctionName == "SwVectorModifyBase::dumpAsXml") {
|
if (aFunctionName == "SwVectorModifyBase::dumpAsXml") {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
// vcl/unx/gtk3 re-using vcl/unx/gtk:
|
||||||
|
if (aFunctionName == "GtkData::initNWF"
|
||||||
|
|| aFunctionName == "GtkSalFrame::EnsureAppMenuWatch")
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
// can't mess with the TYPEINIT macros in include/tools/rtti.hxx or the LINK macros in include/tools/link.hxx
|
// can't mess with the TYPEINIT macros in include/tools/rtti.hxx or the LINK macros in include/tools/link.hxx
|
||||||
std::string aImmediateMacro = "";
|
std::string aImmediateMacro = "";
|
||||||
|
@@ -176,9 +176,7 @@ public:
|
|||||||
|
|
||||||
virtual void PostUserEvent() SAL_OVERRIDE;
|
virtual void PostUserEvent() SAL_OVERRIDE;
|
||||||
|
|
||||||
#if GTK_CHECK_VERSION(3,0,0)
|
#if !GTK_CHECK_VERSION(3,0,0)
|
||||||
guint32 GetLastUserEventTime( bool /* b */ ) { return GDK_CURRENT_TIME; } // horrible hack
|
|
||||||
#else
|
|
||||||
virtual bool Dispatch( XEvent *pEvent ) SAL_OVERRIDE;
|
virtual bool Dispatch( XEvent *pEvent ) SAL_OVERRIDE;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user