sfx2/source/dialog/filedlghelper.cxx | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-)
New commits: commit 128cd3602a29b5e6c08ef7f252a3d1ad5dca2a5e Author: Mike Kaganski <[email protected]> AuthorDate: Sat Feb 28 20:01:01 2026 +0500 Commit: Mike Kaganski <[email protected]> CommitDate: Sat Feb 28 18:08:31 2026 +0100 Drop unneeded variable Change-Id: Ib8c1888dc6673a3f8ae187c0540f47153fb4032e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200672 Tested-by: Jenkins Reviewed-by: Mike Kaganski <[email protected]> diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx index e2c5f3f23d4a..67d4787654da 100644 --- a/sfx2/source/dialog/filedlghelper.cxx +++ b/sfx2/source/dialog/filedlghelper.cxx @@ -2081,7 +2081,6 @@ void SaveLastDirectory(OUString const& sContext, OUString const& sDirectory) void FileDialogHelper_Impl::saveConfig() { uno::Reference < XFilePickerControlAccess > xDlg( mxFileDlg, UNO_QUERY ); - Any aValue; if ( ! xDlg.is() ) return; @@ -2093,15 +2092,13 @@ void FileDialogHelper_Impl::saveConfig() try { // tdf#61358 - remember the last "insert as link" state - aValue = xDlg->getValue(ExtendedFilePickerElementIds::CHECKBOX_LINK, 0); bool bLink = false; - aValue >>= bLink; + xDlg->getValue(ExtendedFilePickerElementIds::CHECKBOX_LINK, 0) >>= bLink; OUString aUserData(GRF_CONFIG_STR); SetToken(aUserData, 0, ' ', OUString::number(static_cast<sal_Int32>(bLink))); - aValue = xDlg->getValue( ExtendedFilePickerElementIds::CHECKBOX_PREVIEW, 0 ); bool bValue = false; - aValue >>= bValue; + xDlg->getValue(ExtendedFilePickerElementIds::CHECKBOX_PREVIEW, 0) >>= bValue; SetToken( aUserData, 1, ' ', OUString::number( static_cast<sal_Int32>(bValue) ) ); INetURLObject aObj( getPath() ); @@ -2135,9 +2132,8 @@ void FileDialogHelper_Impl::saveConfig() { try { - aValue = xDlg->getValue( ExtendedFilePickerElementIds::CHECKBOX_AUTOEXTENSION, 0 ); bool bAutoExt = true; - aValue >>= bAutoExt; + xDlg->getValue(ExtendedFilePickerElementIds::CHECKBOX_AUTOEXTENSION, 0) >>= bAutoExt; SetToken( aUserData, 0, ' ', OUString::number( static_cast<sal_Int32>(bAutoExt) ) ); bWriteConfig = true; } @@ -2158,9 +2154,8 @@ void FileDialogHelper_Impl::saveConfig() { try { - aValue = xDlg->getValue( ExtendedFilePickerElementIds::CHECKBOX_SELECTION, 0 ); bool bSelection = true; - aValue >>= bSelection; + xDlg->getValue(ExtendedFilePickerElementIds::CHECKBOX_SELECTION, 0) >>= bSelection; if ( comphelper::string::getTokenCount(aUserData, ' ') < 3 ) aUserData += " "; SetToken( aUserData, 2, ' ', OUString::number( static_cast<sal_Int32>(bSelection) ) );
