summaryrefslogtreecommitdiff
path: root/sal/osl/unx/tempfile.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/osl/unx/tempfile.cxx')
-rw-r--r--sal/osl/unx/tempfile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/unx/tempfile.cxx b/sal/osl/unx/tempfile.cxx
index 38cc0b83502f..040d3c483042 100644
--- a/sal/osl/unx/tempfile.cxx
+++ b/sal/osl/unx/tempfile.cxx
@@ -192,7 +192,7 @@ static oslFileError osl_create_temp_file_impl_(
rtl_uStringbuffer_newFromStr_WithLength(
&tmp_file_path,
- rtl_uString_getStr((rtl_uString*)pustr_base_directory),
+ rtl_uString_getStr(const_cast<rtl_uString*>(pustr_base_directory)),
len_base_dir);
rtl_uStringbuffer_ensureCapacity(