summaryrefslogtreecommitdiff
path: root/sfx2/source/notebookbar
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-14 15:20:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-15 07:27:43 +0100
commitc82802a9ee3514d0b98fbb3783abbc17ec02c3b6 (patch)
tree0f942fe36637686fcfe61d8c1ded77b2aeadbc37 /sfx2/source/notebookbar
parent45a4e70484e7d90dab07a677914ada2d948b415c (diff)
loplugin:changetoolsgen in sfx2
Change-Id: I34a007711e2ffc70bdee6823ea9b85f60f819e6e Reviewed-on: https://gerrit.libreoffice.org/49727 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/notebookbar')
-rw-r--r--sfx2/source/notebookbar/ContextVBox.cxx4
-rw-r--r--sfx2/source/notebookbar/NotebookbarTabControl.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/notebookbar/ContextVBox.cxx b/sfx2/source/notebookbar/ContextVBox.cxx
index a89c9c2938ce..9a894cf1b6ee 100644
--- a/sfx2/source/notebookbar/ContextVBox.cxx
+++ b/sfx2/source/notebookbar/ContextVBox.cxx
@@ -53,7 +53,7 @@ public:
if ( pChild->HasContext( eContext ) || pChild->HasContext( vcl::EnumContext::Context::Any ) )
{
Size aSize( pChild->GetOptimalSize() );
- aSize.Height() += 6;
+ aSize.setHeight( aSize.Height() + 6 );
pChild->Show();
pChild->SetSizePixel( aSize );
}
@@ -65,7 +65,7 @@ public:
}
}
Size aSize( GetOptimalSize() );
- aSize.Width() += 6;
+ aSize.setWidth( aSize.Width() + 6 );
SetSizePixel( aSize );
}
};
diff --git a/sfx2/source/notebookbar/NotebookbarTabControl.cxx b/sfx2/source/notebookbar/NotebookbarTabControl.cxx
index 87c05ae9179c..6ed83ad9b0c8 100644
--- a/sfx2/source/notebookbar/NotebookbarTabControl.cxx
+++ b/sfx2/source/notebookbar/NotebookbarTabControl.cxx
@@ -278,12 +278,12 @@ Size NotebookbarTabControl::calculateRequisition() const
Size aChildSize = VclAlignment::getLayoutRequisition(*pChild);
if (aChildSize.getWidth() < aSize.getWidth())
- aSize.Width() = aChildSize.Width();
+ aSize.setWidth( aChildSize.Width() );
}
}
if (aSize.Width() < 400)
- aSize.Width() = 400;
+ aSize.setWidth( 400 );
return aSize;
}