summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-03-05 14:48:01 +0100
committerMike Kaganski <mike.kaganski@collabora.com>2021-03-06 08:02:31 +0100
commitadcddde9a99e77f9209cc5e2186cb9268990e34a (patch)
tree3bcfebc72c9711c0ff750295573fde10d9758f18
parentd8fc89cdfd0043838c4bc2d3b5a50bf5abfc6738 (diff)
Use int where API expects int
Change-Id: Icda2aeeccb6196191b0b4af4b86f3d094e598cb0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111930 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
-rw-r--r--vcl/win/dtrans/DOTransferable.cxx2
-rw-r--r--vcl/win/dtrans/TxtCnvtHlp.cxx4
-rw-r--r--vcl/win/dtrans/TxtCnvtHlp.hxx4
3 files changed, 5 insertions, 5 deletions
diff --git a/vcl/win/dtrans/DOTransferable.cxx b/vcl/win/dtrans/DOTransferable.cxx
index 7a911a0fa567..029a21402bac 100644
--- a/vcl/win/dtrans/DOTransferable.cxx
+++ b/vcl/win/dtrans/DOTransferable.cxx
@@ -536,7 +536,7 @@ OUString CDOTransferable::synthesizeUnicodeText( )
// convert the text
MultiByteToWideCharEx( cpForTxtCnvt,
reinterpret_cast<char*>( aTextSequence.getArray( ) ),
- sal::static_int_cast<sal_uInt32>(-1), // Huh ?
+ -1,
stgTransferHelper,
false);
diff --git a/vcl/win/dtrans/TxtCnvtHlp.cxx b/vcl/win/dtrans/TxtCnvtHlp.cxx
index a0c09a1badf5..d7ab386fc1fc 100644
--- a/vcl/win/dtrans/TxtCnvtHlp.cxx
+++ b/vcl/win/dtrans/TxtCnvtHlp.cxx
@@ -58,7 +58,7 @@ static int CalcBuffSizeForTextConversion( UINT code_page, LPCWSTR lpWideCharStri
int MultiByteToWideCharEx( UINT cp_src,
LPCSTR lpMultiByteString,
- sal_uInt32 lenStr,
+ int lenStr,
CStgTransferHelper& refDTransHelper,
BOOL bEnsureTrailingZero )
{
@@ -92,7 +92,7 @@ int MultiByteToWideCharEx( UINT cp_src,
int WideCharToMultiByteEx( UINT cp_dest,
LPCWSTR lpWideCharString,
- sal_uInt32 lenStr,
+ int lenStr,
CStgTransferHelper& refDTransHelper,
BOOL bEnsureTrailingZero )
{
diff --git a/vcl/win/dtrans/TxtCnvtHlp.hxx b/vcl/win/dtrans/TxtCnvtHlp.hxx
index 70bd4e32ab67..5294879337d0 100644
--- a/vcl/win/dtrans/TxtCnvtHlp.hxx
+++ b/vcl/win/dtrans/TxtCnvtHlp.hxx
@@ -28,13 +28,13 @@
int MultiByteToWideCharEx( UINT cp_src,
LPCSTR lpMultiByteString,
- sal_uInt32 lenStr,
+ int lenStr,
CStgTransferHelper& refDTransHelper,
BOOL bEnsureTrailingZero = TRUE );
int WideCharToMultiByteEx( UINT cp_dest,
LPCWSTR lpWideCharString,
- sal_uInt32 lenStr,
+ int lenStr,
CStgTransferHelper& refDTransHelper,
BOOL bEnsureTrailingZero = TRUE );