summaryrefslogtreecommitdiff
path: root/include/sfx2/infobar.hxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-01-09 23:43:31 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-01-14 21:31:31 +0900
commit283170e7a37855b6902d3828e42f3265057d9c77 (patch)
tree7e19fa8e4d9cc0b04d005261c01f355d66887666 /include/sfx2/infobar.hxx
parentddf32e741ae697ca0fd0dc6c32ef521c2c579183 (diff)
ptr_vector & unique_ptr for infobar
Change-Id: Id0d9be65aff504ff6092fa64e8207ddb1b7aeea5
Diffstat (limited to 'include/sfx2/infobar.hxx')
-rw-r--r--include/sfx2/infobar.hxx16
1 files changed, 10 insertions, 6 deletions
diff --git a/include/sfx2/infobar.hxx b/include/sfx2/infobar.hxx
index 386e4150dfca..ee92d398e674 100644
--- a/include/sfx2/infobar.hxx
+++ b/include/sfx2/infobar.hxx
@@ -17,6 +17,8 @@
#include <sfx2/dllapi.h>
#include <sfx2/childwin.hxx>
+#include <boost/ptr_container/ptr_vector.hpp>
+
/** SfxChildWindow for positioning the InfoBar in the view.
*/
class SFX2_DLLPUBLIC SfxInfoBarContainerChild : public SfxChildWindow
@@ -41,10 +43,12 @@ class SFX2_DLLPUBLIC SfxInfoBarContainerChild : public SfxChildWindow
class SfxInfoBarWindow : public vcl::Window
{
private:
- OUString m_sId;
- FixedText* m_pMessage;
- Button* m_pCloseBtn;
- std::vector< PushButton* > m_aActionBtns;
+ OUString m_sId;
+
+ std::unique_ptr<FixedText> m_pMessage;
+ std::unique_ptr<Button> m_pCloseBtn;
+
+ boost::ptr_vector<PushButton> m_aActionBtns;
public:
SfxInfoBarWindow( vcl::Window* parent, const OUString& sId,
@@ -63,8 +67,8 @@ class SfxInfoBarWindow : public vcl::Window
class SfxInfoBarContainerWindow : public vcl::Window
{
private:
- SfxInfoBarContainerChild* m_pChildWin;
- std::vector< SfxInfoBarWindow* > m_pInfoBars;
+ SfxInfoBarContainerChild* m_pChildWin;
+ boost::ptr_vector<SfxInfoBarWindow> m_pInfoBars;
public:
SfxInfoBarContainerWindow( SfxInfoBarContainerChild* pChildWin );