diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-01-20 14:22:52 +0000 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-01-25 10:21:09 +0100 |
commit | a1e83bc0079edae1067342d34b22977523bef12d (patch) | |
tree | d0a1301b52c261d07ee27a14ccf04c708bcc16d2 /vcl | |
parent | e680ba7e15adc76a1a7fc7e5e0be06be9e5b5e73 (diff) |
drop RadioButton arg defaults
the nBits arg in builder.cxx was in the wrong place
Change-Id: Id4d0dd6919444cb39cf0d9e593f46d324f343a31
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109682
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/qa/cppunit/lifecycle.cxx | 4 | ||||
-rw-r--r-- | vcl/source/window/builder.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/vcl/qa/cppunit/lifecycle.cxx b/vcl/qa/cppunit/lifecycle.cxx index f77df28af70f..418cecbf237b 100644 --- a/vcl/qa/cppunit/lifecycle.cxx +++ b/vcl/qa/cppunit/lifecycle.cxx @@ -127,7 +127,7 @@ void LifecycleTest::testWidgets(vcl::Window *pParent) (void)aPtr; // silence unused variable warning } { - ScopedVclPtrInstance< RadioButton > aPtr( pParent ); + ScopedVclPtrInstance< RadioButton > aPtr( pParent, true, 0 ); (void)aPtr; // silence unused variable warning } } @@ -299,7 +299,7 @@ void LifecycleTest::testLeakage() aObjects.push_back(LeakTestObject::Create<CheckBox>(xParent)); aObjects.push_back(LeakTestObject::Create<Edit>(xParent)); aObjects.push_back(LeakTestObject::Create<ComboBox>(xParent)); - aObjects.push_back(LeakTestObject::Create<RadioButton>(xParent)); + aObjects.push_back(LeakTestObject::Create<RadioButton>(xParent, true, 0)); { // something that looks like a dialog aObjects.push_back(LeakTestObject::Create<Dialog>(xParent,WB_CLIPCHILDREN|WB_MOVEABLE|WB_3DLOOK|WB_CLOSEABLE|WB_SIZEABLE)); diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index 9e322c3f1935..0dafe3895180 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -1879,7 +1879,7 @@ VclPtr<vcl::Window> VclBuilder::makeObject(vcl::Window *pParent, const OString & { extractGroup(id, rMap); WinBits nBits = WB_CLIPCHILDREN|WB_CENTER|WB_VCENTER|WB_3DLOOK; - VclPtr<RadioButton> xButton = VclPtr<RadioButton>::Create(pParent, nBits); + VclPtr<RadioButton> xButton = VclPtr<RadioButton>::Create(pParent, true, nBits); xButton->SetImageAlign(ImageAlign::Left); //default to left xWindow = xButton; |