summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-10-10 13:07:05 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-10-10 15:31:32 +0200
commita11926f900e5b20c1ef924d139a8ae35937aa224 (patch)
tree1909dd8374ce170db821de3fe3c6bcf8f89abae6 /cui
parentd4ad516bc0607a1d84451dd3dc8811a4f801fa4c (diff)
Picture can be in anonymous namespace
Change-Id: I484443e70b6465a98851aede32df1975d55d75d0 Reviewed-on: https://gerrit.libreoffice.org/80604 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/screenshotannotationdlg.cxx39
1 files changed, 21 insertions, 18 deletions
diff --git a/cui/source/dialogs/screenshotannotationdlg.cxx b/cui/source/dialogs/screenshotannotationdlg.cxx
index 67373ec6f323..cc43afa14a2f 100644
--- a/cui/source/dialogs/screenshotannotationdlg.cxx
+++ b/cui/source/dialogs/screenshotannotationdlg.cxx
@@ -104,27 +104,30 @@ namespace
}
}
-class Picture : public weld::CustomWidgetController
+namespace
{
-private:
- ScreenshotAnnotationDlg_Impl *m_pDialog;
- bool m_bMouseOver;
-private:
- virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle&) override;
- virtual bool MouseMove(const MouseEvent& rMouseEvent) override;
- virtual bool MouseButtonUp(const MouseEvent& rMouseEvent) override;
-public:
- Picture(ScreenshotAnnotationDlg_Impl* pDialog)
- : m_pDialog(pDialog)
- , m_bMouseOver(false)
+ class Picture : public weld::CustomWidgetController
{
- }
+ private:
+ ScreenshotAnnotationDlg_Impl *m_pDialog;
+ bool m_bMouseOver;
+ private:
+ virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle&) override;
+ virtual bool MouseMove(const MouseEvent& rMouseEvent) override;
+ virtual bool MouseButtonUp(const MouseEvent& rMouseEvent) override;
+ public:
+ Picture(ScreenshotAnnotationDlg_Impl* pDialog)
+ : m_pDialog(pDialog)
+ , m_bMouseOver(false)
+ {
+ }
- bool IsMouseOver() const
- {
- return m_bMouseOver;
- }
-};
+ bool IsMouseOver() const
+ {
+ return m_bMouseOver;
+ }
+ };
+}
class ScreenshotAnnotationDlg_Impl
{