summaryrefslogtreecommitdiff
path: root/sal/osl
diff options
context:
space:
mode:
Diffstat (limited to 'sal/osl')
-rw-r--r--sal/osl/unx/file.cxx2
-rw-r--r--sal/osl/unx/profile.cxx2
-rw-r--r--sal/osl/unx/tempfile.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx
index 143207efbd5f..d3c3f95b5cd9 100644
--- a/sal/osl/unx/file.cxx
+++ b/sal/osl/unx/file.cxx
@@ -315,7 +315,7 @@ oslFileError FileHandle_Impl::setSize (sal_uInt64 uSize)
if (-1 == lseek (m_fd, (off_t)(nSize - 1), SEEK_SET))
return result;
- if (-1 == write (m_fd, (char*)"", (size_t)1))
+ if (-1 == write (m_fd, "", (size_t)1))
{
/* Failure. Restore saved position */
(void) lseek (m_fd, (off_t)(nCurPos), SEEK_SET);
diff --git a/sal/osl/unx/profile.cxx b/sal/osl/unx/profile.cxx
index 9ca76445f78f..ce40c80938be 100644
--- a/sal/osl/unx/profile.cxx
+++ b/sal/osl/unx/profile.cxx
@@ -398,7 +398,7 @@ sal_Bool SAL_CALL osl_readProfileString(oslProfile Profile,
}
else
{
- pStr=(sal_Char*)pszDefault;
+ pStr=const_cast<sal_Char*>(pszDefault);
}
if ( pStr != 0 )
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(