Upcoming improved loplugin:staticanonymous -> redundantstatic: vbahelper

Change-Id: I55c29df7d500a6cd8aab01378efcbe01d1c2092f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97739
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann
2020-07-02 12:17:26 +02:00
parent 269a161b38
commit f0d4f96a0c
3 changed files with 18 additions and 18 deletions

View File

@@ -27,21 +27,21 @@
#include <com/sun/star/frame/XLayoutManager.hpp>
#include <memory>
static const char ITEM_DESCRIPTOR_COMMANDURL[] = "CommandURL";
static const char ITEM_DESCRIPTOR_HELPURL[] = "HelpURL";
static const char ITEM_DESCRIPTOR_CONTAINER[] = "ItemDescriptorContainer";
static const char ITEM_DESCRIPTOR_LABEL[] = "Label";
static const char ITEM_DESCRIPTOR_TYPE[] = "Type";
static const char ITEM_DESCRIPTOR_STYLE[] = "Style";
static const char ITEM_DESCRIPTOR_ISVISIBLE[] = "IsVisible";
static const char ITEM_DESCRIPTOR_UINAME[] = "UIName";
static const char ITEM_DESCRIPTOR_ENABLED[] = "Enabled";
const char ITEM_DESCRIPTOR_COMMANDURL[] = "CommandURL";
const char ITEM_DESCRIPTOR_HELPURL[] = "HelpURL";
const char ITEM_DESCRIPTOR_CONTAINER[] = "ItemDescriptorContainer";
const char ITEM_DESCRIPTOR_LABEL[] = "Label";
const char ITEM_DESCRIPTOR_TYPE[] = "Type";
const char ITEM_DESCRIPTOR_STYLE[] = "Style";
const char ITEM_DESCRIPTOR_ISVISIBLE[] = "IsVisible";
const char ITEM_DESCRIPTOR_UINAME[] = "UIName";
const char ITEM_DESCRIPTOR_ENABLED[] = "Enabled";
static const char ITEM_MENUBAR_URL[] = "private:resource/menubar/menubar";
static const char ITEM_TOOLBAR_URL[] = "private:resource/toolbar/";
const char ITEM_MENUBAR_URL[] = "private:resource/menubar/menubar";
const char ITEM_TOOLBAR_URL[] = "private:resource/toolbar/";
static const char CUSTOM_TOOLBAR_STR[] = "custom_toolbar_";
static const char CUSTOM_MENU_STR[] = "vnd.openoffice.org:CustomMenu";
const char CUSTOM_TOOLBAR_STR[] = "custom_toolbar_";
const char CUSTOM_MENU_STR[] = "vnd.openoffice.org:CustomMenu";
class VbaCommandBarHelper;
typedef std::shared_ptr< VbaCommandBarHelper > VbaCommandBarHelperRef;

View File

@@ -33,7 +33,7 @@ using namespace ooo::vba;
// special key to return the Application
const char sAppService[] = "ooo.vba.Application";
static const OUStringLiteral gsApplication( "Application" );
const OUStringLiteral gsApplication( "Application" );
VbaGlobalsBase::VbaGlobalsBase(
const uno::Reference< ov::XHelperInterface >& xParent,

View File

@@ -851,10 +851,10 @@ double UserFormGeometryHelper::getOffsetY() const
}
static const char saPosXName[] = "PositionX";
static const char saPosYName[] = "PositionY";
static const char saWidthName[] = "Width";
static const char saHeightName[] = "Height";
const char saPosXName[] = "PositionX";
const char saPosYName[] = "PositionY";
const char saWidthName[] = "Width";
const char saHeightName[] = "Height";
double UserFormGeometryHelper::implGetPos( bool bPosY ) const
{