summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-11-19 11:53:54 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-11-19 13:01:34 +0100
commitb64c90c1ef0067aeedc22f6a4bbe7ca243ffdc77 (patch)
tree1fa90cfa6faa6a2c4335f804ec68f3ba1774a31a /sal
parent431a7c402f5ba41db1c0acbe264c50da925b05a4 (diff)
nlsupport.c -> nlsupport.cxx
Change-Id: Ida0c3c0c521f71fd3f18a12c02cf98ac96c5b7a6
Diffstat (limited to 'sal')
-rw-r--r--sal/Library_sal.mk2
-rw-r--r--sal/osl/unx/nlsupport.cxx (renamed from sal/osl/unx/nlsupport.c)4
2 files changed, 3 insertions, 3 deletions
diff --git a/sal/Library_sal.mk b/sal/Library_sal.mk
index b2e4a6f025c3..6dfcfaac37d3 100644
--- a/sal/Library_sal.mk
+++ b/sal/Library_sal.mk
@@ -162,6 +162,7 @@ $(eval $(call gb_Library_add_exception_objects,sal,\
sal/osl/unx/memory \
sal/osl/unx/module \
sal/osl/unx/mutex \
+ sal/osl/unx/nlsupport \
sal/osl/unx/process \
sal/osl/unx/process_impl \
sal/osl/unx/profile \
@@ -171,7 +172,6 @@ $(eval $(call gb_Library_add_exception_objects,sal,\
$(if $(filter DESKTOP,$(BUILD_TYPE)), sal/osl/unx/salinit) \
))
$(eval $(call gb_Library_add_cobjects,sal,\
- sal/osl/unx/nlsupport \
sal/osl/unx/pipe \
sal/osl/unx/readwrite_helper \
sal/osl/unx/socket \
diff --git a/sal/osl/unx/nlsupport.c b/sal/osl/unx/nlsupport.cxx
index 29eef0af0da1..7e0eee8856de 100644
--- a/sal/osl/unx/nlsupport.c
+++ b/sal/osl/unx/nlsupport.cxx
@@ -106,7 +106,7 @@ static char * _compose_locale( rtl_Locale * pLocale, char * buffer, size_t n )
pLocale->Language->buffer, pLocale->Language->length,
RTL_TEXTENCODING_ASCII_US, OUSTRING_TO_OSTRING_CVTFLAGS );
- if( SAL_INT_CAST(sal_uInt32, pLanguage->length) < n )
+ if( sal::static_int_cast<sal_uInt32>(pLanguage->length) < n )
{
strcpy( buffer, pLanguage->buffer );
offset = pLanguage->length;
@@ -136,7 +136,7 @@ static char * _compose_locale( rtl_Locale * pLocale, char * buffer, size_t n )
/* convert variant to ascii - check if there is enough space for the variant string */
if( pLocale->Variant && pLocale->Variant->length &&
- ( SAL_INT_CAST(sal_uInt32, pLocale->Variant->length) < n - 6 ) )
+ ( sal::static_int_cast<sal_uInt32>(pLocale->Variant->length) < n - 6 ) )
{
rtl_String *pVariant = NULL;