summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/file.cxx2
-rw-r--r--sal/osl/unx/profile.cxx2
-rw-r--r--sal/osl/unx/tempfile.cxx2
-rw-r--r--sal/qa/rtl/process/rtl_Process.cxx2
-rw-r--r--sal/rtl/strtmpl.cxx2
5 files changed, 5 insertions, 5 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(
diff --git a/sal/qa/rtl/process/rtl_Process.cxx b/sal/qa/rtl/process/rtl_Process.cxx
index 6640eed804e3..535b4f1f903b 100644
--- a/sal/qa/rtl/process/rtl_Process.cxx
+++ b/sal/qa/rtl/process/rtl_Process.cxx
@@ -50,7 +50,7 @@ inline void printUString( const ::rtl::OUString & str, const sal_Char * msg = NU
}
rtl::OString aString;
aString = ::rtl::OUStringToOString( str, RTL_TEXTENCODING_ASCII_US );
- printf("%s\n", (char *)aString.getStr( ) );
+ printf("%s\n", aString.getStr( ) );
}
inline ::rtl::OUString getModulePath( void )
diff --git a/sal/rtl/strtmpl.cxx b/sal/rtl/strtmpl.cxx
index 4a90c2ea74e4..55351501ab3e 100644
--- a/sal/rtl/strtmpl.cxx
+++ b/sal/rtl/strtmpl.cxx
@@ -1242,7 +1242,7 @@ void SAL_CALL IMPL_RTL_STRINGNAME( new )( IMPL_RTL_STRINGDATA** ppThis )
if ( *ppThis)
IMPL_RTL_STRINGNAME( release )( *ppThis );
- *ppThis = (IMPL_RTL_STRINGDATA*) (&IMPL_RTL_EMPTYSTRING);
+ *ppThis = const_cast<IMPL_RTL_STRINGDATA*>(&IMPL_RTL_EMPTYSTRING);
}
/* ----------------------------------------------------------------------- */