New loplugin:externvar: sfx2

Change-Id: I166293e7404fb5d638fcd25d8413b33026b326b2
This commit is contained in:
Stephan Bergmann
2017-01-09 15:40:52 +01:00
parent 9b37930e8a
commit 2a87543d86
6 changed files with 6 additions and 6 deletions

View File

@@ -79,7 +79,7 @@ using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::io;
// needs to be converted to a better data structure
SfxFormalArgument aFormalArgs[] = {
SfxFormalArgument const aFormalArgs[] = {
{ reinterpret_cast<SfxType*>(&aSfxStringItem_Impl), "SuggestedSaveAsName", SID_DEFAULTFILENAME },
{ reinterpret_cast<SfxType*>(&aSfxStringItem_Impl), "SuggestedSaveAsDir", SID_DEFAULTFILEPATH },
{ reinterpret_cast<SfxType*>(&aSfxStringItem_Impl), "VersionAuthor", SID_DOCINFO_AUTHOR },

View File

@@ -55,7 +55,7 @@ static GtkWidget *pExitMenuItem = nullptr;
static GtkWidget *pOpenMenuItem = nullptr;
static GtkWidget *pDisableMenuItem = nullptr;
#if ENABLE_GIO
GFileMonitor* pMonitor = nullptr;
static GFileMonitor* pMonitor = nullptr;
#endif
static void open_url_cb( GtkWidget *, gpointer data )

View File

@@ -99,7 +99,7 @@ enum URLTypeId
URLType_COUNT
};
const char* URLTypeNames[URLType_COUNT] =
const char* const URLTypeNames[URLType_COUNT] =
{
"bool",
"byte",

View File

@@ -66,7 +66,7 @@ using namespace ::com::sun::star::document;
const char SERVICENAME_CFGREADACCESS[] = "com.sun.star.configuration.ConfigurationAccess";
// increase size of the text in the buttons on the left fMultiplier-times
float fMultiplier = 1.4f;
float const fMultiplier = 1.4f;
BackingWindow::BackingWindow( vcl::Window* i_pParent ) :
Window( i_pParent ),

View File

@@ -251,7 +251,7 @@ public:
}
};
SfxDocTemplate_Impl *gpTemplateData = nullptr;
static SfxDocTemplate_Impl *gpTemplateData = nullptr;
static bool getTextProperty_Impl( Content& rContent,

View File

@@ -176,7 +176,7 @@ sal_uInt32 Get10ThSec()
return n10Ticks / CLOCKS_PER_SEC;
}
sal_Int32 m_nInReschedule = 0; /// static counter for rescheduling
static sal_Int32 m_nInReschedule = 0; /// static counter for rescheduling
void reschedule()
{