diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-12-05 09:55:56 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-12-05 13:31:39 +0100 |
commit | 55e596956e56b175ab17b682e7c8ac7daeb9289a (patch) | |
tree | 3691e2f43d50019b5e0f0e0145714afb13bcc685 /fpicker/source | |
parent | 6a10149c5fef13721e3f83727a828556f8e1ec9a (diff) |
loplugin:external (clang-cl)
...plus loplugin:consttobool and loplugin:fakebool fallout
Change-Id: Ie3d8121815c080b13bea6d9deca1eb138ca56138
Reviewed-on: https://gerrit.libreoffice.org/84515
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'fpicker/source')
-rw-r--r-- | fpicker/source/win32/VistaFilePickerEventHandler.cxx | 2 | ||||
-rw-r--r-- | fpicker/source/win32/resourceprovider.cxx | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/fpicker/source/win32/VistaFilePickerEventHandler.cxx b/fpicker/source/win32/VistaFilePickerEventHandler.cxx index b9ac5a3d28b8..66b12fd015de 100644 --- a/fpicker/source/win32/VistaFilePickerEventHandler.cxx +++ b/fpicker/source/win32/VistaFilePickerEventHandler.cxx @@ -233,6 +233,7 @@ void VistaFilePickerEventHandler::stopListening() static const char PROP_CONTROL_ID[] = "control_id"; static const char PROP_PICKER_LISTENER[] = "picker_listener"; +namespace { class AsyncPickerEvents : public RequestHandler { @@ -286,6 +287,7 @@ public: {} }; +} void VistaFilePickerEventHandler::impl_sendEvent( EEventType eEventType, ::sal_Int16 nControlID) diff --git a/fpicker/source/win32/resourceprovider.cxx b/fpicker/source/win32/resourceprovider.cxx index cab15018ca84..883edf36dff2 100644 --- a/fpicker/source/win32/resourceprovider.cxx +++ b/fpicker/source/win32/resourceprovider.cxx @@ -41,12 +41,16 @@ using namespace ::com::sun::star::ui::dialogs::CommonFilePickerElementIds; // we have to translate control ids to resource ids +namespace { + struct Entry { sal_Int32 ctrlId; const char* resId; }; +} + Entry const CtrlIdToResIdTable[] = { { CHECKBOX_AUTOEXTENSION, STR_SVT_FILEPICKER_AUTO_EXTENSION }, { CHECKBOX_PASSWORD, STR_SVT_FILEPICKER_PASSWORD }, |