dbaccess/source/ui/control/FieldDescControl.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 91008b583dff98004fbb59be9357f3bbadac367c Author: Stephan Bergmann <sberg...@redhat.com> Date: Mon Apr 16 13:15:44 2018 +0200 More -Werror,-Wreturn-std-move Change-Id: I21eeabf94c29d6eb67c18baf8cc3ed8f52903710 diff --git a/dbaccess/source/ui/control/FieldDescControl.cxx b/dbaccess/source/ui/control/FieldDescControl.cxx index 58d8fd4209e3..c884e31e55f5 100644 --- a/dbaccess/source/ui/control/FieldDescControl.cxx +++ b/dbaccess/source/ui/control/FieldDescControl.cxx @@ -906,7 +906,7 @@ void OFieldDescControl::InitializeControl(Control* _pControl,const OString& _sHe VclPtr<FixedText> OFieldDescControl::CreateText(const char* pTextRes) { - VclPtrInstance<FixedText> pFixedText( this ); + auto pFixedText = VclPtr<FixedText>::Create( this ); pFixedText->SetText(DBA_RES(pTextRes)); pFixedText->EnableClipSiblings(); return pFixedText; @@ -914,7 +914,7 @@ VclPtr<FixedText> OFieldDescControl::CreateText(const char* pTextRes) VclPtr<OPropNumericEditCtrl> OFieldDescControl::CreateNumericControl(const char* pHelpId, short _nProperty, const OString& _sHelpId) { - VclPtrInstance<OPropNumericEditCtrl> pControl(this, pHelpId, _nProperty, WB_BORDER); + auto pControl = VclPtr<OPropNumericEditCtrl>::Create(this, pHelpId, _nProperty, WB_BORDER); pControl->SetDecimalDigits(0); pControl->SetMin(0); pControl->SetMax(0x7FFFFFFF); // Should be changed outside, if needed _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits