diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-04-16 13:15:44 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-04-16 13:15:44 +0200 |
commit | 91008b583dff98004fbb59be9357f3bbadac367c (patch) | |
tree | 2c2cf719980064ce8902dc3aae7816a04c03c348 /dbaccess | |
parent | df47dae7283f10be39c7052ac51967bce742b6ac (diff) |
More -Werror,-Wreturn-std-move
Change-Id: I21eeabf94c29d6eb67c18baf8cc3ed8f52903710
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/control/FieldDescControl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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 |