summaryrefslogtreecommitdiff
path: root/sal/textenc/tencinfo.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/textenc/tencinfo.cxx')
-rw-r--r--sal/textenc/tencinfo.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/sal/textenc/tencinfo.cxx b/sal/textenc/tencinfo.cxx
index b0312bb4f7fc..a220d71a4330 100644
--- a/sal/textenc/tencinfo.cxx
+++ b/sal/textenc/tencinfo.cxx
@@ -783,8 +783,7 @@ sal_uInt8 SAL_CALL rtl_getBestWindowsCharsetFromTextEncoding( rtl_TextEncoding e
const ImplTextEncodingData* pData = Impl_getTextEncodingData( eTextEncoding );
if ( pData )
return pData->mnBestWindowsCharset;
- else
- return 1;
+ return 1;
}
/* ----------------------------------------------------------------------- */
@@ -794,10 +793,9 @@ const char* SAL_CALL rtl_getBestUnixCharsetFromTextEncoding( rtl_TextEncoding eT
const ImplTextEncodingData* pData = Impl_getTextEncodingData( eTextEncoding );
if ( pData )
return pData->mpBestUnixCharset;
- else if( eTextEncoding == RTL_TEXTENCODING_UNICODE )
+ if( eTextEncoding == RTL_TEXTENCODING_UNICODE )
return "iso10646-1";
- else
- return nullptr;
+ return nullptr;
}
/* ----------------------------------------------------------------------- */
@@ -815,8 +813,7 @@ const char* SAL_CALL rtl_getBestMimeCharsetFromTextEncoding( rtl_TextEncoding eT
const ImplTextEncodingData* pData = Impl_getTextEncodingData( eTextEncoding );
if ( pData )
return pData->mpBestMimeCharset;
- else
- return nullptr;
+ return nullptr;
}
/* The following two functions are based on <http://www.sharmahd.com/tm/