diff options
Diffstat (limited to 'dbaccess/source/ui/browser/sbagrid.cxx')
-rw-r--r-- | dbaccess/source/ui/browser/sbagrid.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/browser/sbagrid.cxx b/dbaccess/source/ui/browser/sbagrid.cxx index c581844cfa8d..74e6691c3164 100644 --- a/dbaccess/source/ui/browser/sbagrid.cxx +++ b/dbaccess/source/ui/browser/sbagrid.cxx @@ -792,7 +792,7 @@ void SbaGridControl::SetColWidth(sal_uInt16 nColId) Any aWidth = xAffectedCol->getPropertyValue(PROPERTY_WIDTH); sal_Int32 nCurWidth = aWidth.hasValue() ? ::comphelper::getINT32(aWidth) : -1; - ScopedVclPtr<DlgSize> aDlgColWidth(new DlgSize(this, nCurWidth, false)); + ScopedVclPtrInstance< DlgSize > aDlgColWidth(this, nCurWidth, false); if (aDlgColWidth->Execute()) { sal_Int32 nValue = aDlgColWidth->GetValue(); @@ -821,7 +821,7 @@ void SbaGridControl::SetRowHeight() Any aHeight = xCols->getPropertyValue(PROPERTY_ROW_HEIGHT); sal_Int32 nCurHeight = aHeight.hasValue() ? ::comphelper::getINT32(aHeight) : -1; - ScopedVclPtr<DlgSize> aDlgRowHeight(new DlgSize(this, nCurHeight, true)); + ScopedVclPtrInstance< DlgSize > aDlgRowHeight(this, nCurHeight, true); if (aDlgRowHeight->Execute()) { sal_Int32 nValue = aDlgRowHeight->GetValue(); |