diff options
author | Herbert Dürr <hdu@apache.org> | 2013-01-14 14:08:03 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-05-10 15:44:40 +0100 |
commit | 1fd78e48caf1d0a7908dbc8ecd552c7f0d9d7b6d (patch) | |
tree | d53ce03c4fa8e3dfa0f9e51e893d3f99d0b36b52 /include/vcl/fixed.hxx | |
parent | 62d2faac1962a082abeb0169acc3d615bfaac4db (diff) |
make some important single-parameter constructors explicit
for symmetry also the other constructors in the same class
and mark their destructors as virtual if they are anyway
(cherry picked from commit 870349eada8c0e56d58c8d2ee40ad561a9f982fe)
Conflicts:
vcl/inc/vcl/button.hxx
vcl/inc/vcl/combobox.hxx
vcl/inc/vcl/ctrl.hxx
vcl/inc/vcl/dialog.hxx
vcl/inc/vcl/dockingarea.hxx
vcl/inc/vcl/event.hxx
vcl/inc/vcl/field.hxx
vcl/inc/vcl/fixed.hxx
vcl/inc/vcl/floatwin.hxx
vcl/inc/vcl/fontmanager.hxx
vcl/inc/vcl/group.hxx
vcl/inc/vcl/lstbox.hxx
vcl/inc/vcl/menu.hxx
vcl/inc/vcl/menubtn.hxx
vcl/inc/vcl/metaact.hxx
vcl/inc/vcl/morebtn.hxx
vcl/inc/vcl/pngread.hxx
vcl/inc/vcl/scrbar.hxx
vcl/inc/vcl/spin.hxx
vcl/inc/vcl/spinfld.hxx
vcl/inc/vcl/split.hxx
vcl/inc/vcl/syschild.hxx
vcl/inc/vcl/tabpage.hxx
vcl/inc/vcl/virdev.hxx
vcl/inc/vcl/wrkwin.hxx
Change-Id: I8c29f74208cf382a9baa01c2e2d0757688cb4641
Diffstat (limited to 'include/vcl/fixed.hxx')
-rw-r--r-- | include/vcl/fixed.hxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/include/vcl/fixed.hxx b/include/vcl/fixed.hxx index b592d98a48d2..d8379e5be6ca 100644 --- a/include/vcl/fixed.hxx +++ b/include/vcl/fixed.hxx @@ -59,9 +59,9 @@ protected: virtual Window* getAccessibleRelationLabelFor() const; public: - FixedText( Window* pParent, WinBits nStyle = 0 ); - FixedText( Window* pParent, const ResId& rResId ); - ~FixedText(); + explicit FixedText( Window* pParent, WinBits nStyle = 0 ); + explicit FixedText( Window* pParent, const ResId& rResId ); + virtual ~FixedText(); virtual void Paint( const Rectangle& rRect ); virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags ); @@ -85,7 +85,7 @@ public: class VCL_DLLPUBLIC SelectableFixedText : public Edit { public: - SelectableFixedText( Window* pParent, WinBits nStyle = 0 ); + explicit SelectableFixedText( Window* pParent, WinBits nStyle = 0 ); virtual void LoseFocus(); }; @@ -112,8 +112,8 @@ protected: GetCanonicalTextColor( const StyleSettings& _rStyle ) const; public: - FixedLine( Window* pParent, WinBits nStyle = WB_HORZ ); - FixedLine( Window* pParent, const ResId& rResId ); + explicit FixedLine( Window* pParent, WinBits nStyle = WB_HORZ ); + explicit FixedLine( Window* pParent, const ResId& ); virtual void Paint( const Rectangle& rRect ); virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags ); @@ -145,9 +145,9 @@ protected: SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId ); public: - FixedBitmap( Window* pParent, WinBits nStyle = 0 ); - FixedBitmap( Window* pParent, const ResId& rResId ); - ~FixedBitmap(); + explicit FixedBitmap( Window* pParent, WinBits nStyle = 0 ); + explicit FixedBitmap( Window* pParent, const ResId& ); + virtual ~FixedBitmap(); virtual void Paint( const Rectangle& rRect ); virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags ); @@ -183,9 +183,9 @@ protected: SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId ); public: - FixedImage( Window* pParent, WinBits nStyle = 0 ); - FixedImage( Window* pParent, const ResId& rResId ); - ~FixedImage(); + explicit FixedImage( Window* pParent, WinBits nStyle = 0 ); + explicit FixedImage( Window* pParent, const ResId& ); + virtual ~FixedImage(); virtual void Paint( const Rectangle& rRect ); virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags ); |