summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-11-08 14:19:41 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2023-11-09 07:21:10 +0100
commit3a21ea3548abc8ba18bc50ba3d9f646e92ae7d5e (patch)
tree64d4011fc0aa200025c710fdf1597c8fdd5c01e4 /sfx2/source
parentc7f43e0f3d03ec6583fbf7eb553eec53f3ec43b8 (diff)
Simplify a bit
Additionally, get rid of a variable that was for system path, but used "URL" in its name :-) Change-Id: I77db0ae42677e2fef1431d45b1736d2e54ff26d9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159156 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/doc/docmacromode.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sfx2/source/doc/docmacromode.cxx b/sfx2/source/doc/docmacromode.cxx
index 8157da72b416..bbb4dd37e8f0 100644
--- a/sfx2/source/doc/docmacromode.cxx
+++ b/sfx2/source/doc/docmacromode.cxx
@@ -308,10 +308,7 @@ namespace sfx2
if ( eAutoConfirm == eNoAutoConfirm )
{
OUString sReferrer(sURL);
-
- OUString aSystemFileURL;
- if ( osl::FileBase::getSystemPathFromFileURL( sReferrer, aSystemFileURL ) == osl::FileBase::E_None )
- sReferrer = aSystemFileURL;
+ osl::FileBase::getSystemPathFromFileURL(sReferrer, sReferrer);
bSecure = lcl_showMacroWarning( rxInteraction, sReferrer );
}