summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-09-25 14:02:33 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-09-28 08:48:52 +0100
commit5d60e826ae6b10161ecff64fbfbf9af230898764 (patch)
tree53e0d8597b3393a98bf40887ee2f87aa1767f31b /sw/source/ui
parent56ec8c6dcd6140b3df8bc51815066c95f4af2cfa (diff)
set the default button on various dialogs
Change-Id: I63b1cc73d8ed240c40dec07fe1f8470da8410464
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/misc/linenum.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/ui/misc/linenum.cxx b/sw/source/ui/misc/linenum.cxx
index 96e90c1a0a2d..895137b37e7c 100644
--- a/sw/source/ui/misc/linenum.cxx
+++ b/sw/source/ui/misc/linenum.cxx
@@ -133,8 +133,7 @@ SwLineNumberingDlg::SwLineNumberingDlg(SwView *pVw)
ModifyHdl();
LineOnOffHdl();
- PushButton *pOkPB = get<PushButton>("ok");
- pOkPB->SetClickHdl(LINK(this, SwLineNumberingDlg, OKHdl));
+ get<PushButton>("ok")->SetClickHdl(LINK(this, SwLineNumberingDlg, OKHdl));
}
SwLineNumberingDlg::~SwLineNumberingDlg()