diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-03-07 10:48:56 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-03-07 10:48:56 +0000 |
commit | a247f6f8febbc24a3298b7c5404cade8a432fecf (patch) | |
tree | f260b2eab1ed5d02f85663220c923ab4f1d79c6f /sw | |
parent | 22e3da098ce19fe3463af67b44a4529fe555a181 (diff) |
only one use of GetLastSaveDirectory
which is to get its value and do a const_cast dance to save and
restore its value which is a strange thing to do just for one
obscure dialog when no other use of the save/load dialogs does this
Change-Id: I7700d7ed738d578869284d415197de06167001b5
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/index/cnttab.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx index 100e75914084..9eb671adafcb 100644 --- a/sw/source/ui/index/cnttab.cxx +++ b/sw/source/ui/index/cnttab.cxx @@ -106,9 +106,6 @@ static OUString lcl_CreateAutoMarkFileDlg( const OUString& rURL, xFltMgr->appendFilter( rFileString, "*.sdi" ); xFltMgr->setCurrentFilter( rFileString ) ; - OUString& rLastSaveDir = (OUString&)SfxGetpApp()->GetLastSaveDirectory(); - OUString sSaveDir = rLastSaveDir; - if( !rURL.isEmpty() ) xFP->setDisplayDirectory( rURL ); else @@ -121,7 +118,7 @@ static OUString lcl_CreateAutoMarkFileDlg( const OUString& rURL, { sRet = xFP->getSelectedFiles().getConstArray()[0]; } - rLastSaveDir = sSaveDir; + return sRet; } |