diff options
author | Uray M. János <uray.janos@gmail.com> | 2012-09-02 16:21:08 +0200 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2012-09-07 11:20:48 +0200 |
commit | 81f72a3c3a30ef00dfb03bd7fab148d2fcf3e4f8 (patch) | |
tree | d5586410e1f0d6b7413f1cab952c76c1978e0a7f /basctl/source/basicide/basobj3.cxx | |
parent | 5764c51f2c9870c91727464c0d889d3554a5663e (diff) |
Cleanup in basctl (raw pointers)
Lots of raw pointers have been converted to boost::scoped_ptr to reduce
the number of 'delete's and the possibility of memory leaks.
Some pointers have been converted to references, to reduce the needless
checking for nullptrs, and so simplifying the code.
Also some #define-s have been converted to C++ constants or enumerations.
Change-Id: Ifbeb78f744bac7a96c8a446ff4db90dedf85fe26
Diffstat (limited to 'basctl/source/basicide/basobj3.cxx')
-rw-r--r-- | basctl/source/basicide/basobj3.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basctl/source/basicide/basobj3.cxx b/basctl/source/basicide/basobj3.cxx index 576ab8b2f521..5da04e9016fb 100644 --- a/basctl/source/basicide/basobj3.cxx +++ b/basctl/source/basicide/basobj3.cxx @@ -196,7 +196,7 @@ bool RenameDialog ( DialogWindow* pWin = pShell ? pShell->FindDlgWin(rDocument, rLibName, rOldName) : 0; Reference< XNameContainer > xExistingDialog; if ( pWin ) - xExistingDialog = pWin->GetEditor()->GetDialog(); + xExistingDialog = pWin->GetEditor().GetDialog(); if ( xExistingDialog.is() ) LocalizationMgr::renameStringResourceIDs( rDocument, rLibName, rNewName, xExistingDialog ); |