diff options
author | Alexander Wilms <f.alexander.wilms@gmail.com> | 2014-02-22 21:20:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-23 03:38:49 +0000 |
commit | 0ce0c369aa8880dff9fe874ba85ec6f52ee37ddf (patch) | |
tree | 5024cba9f9ea5e3b23ea26025323f6aef39488d0 /dtrans/source/win32/misc | |
parent | b81ac16e65b311d6e43c05c22c65d2040c9d7e04 (diff) |
Remove unneccessary comments
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb
Reviewed-on: https://gerrit.libreoffice.org/8182
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dtrans/source/win32/misc')
-rw-r--r-- | dtrans/source/win32/misc/ImplHelper.cxx | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/dtrans/source/win32/misc/ImplHelper.cxx b/dtrans/source/win32/misc/ImplHelper.cxx index 3337644f63ab..3b6c75ce010a 100644 --- a/dtrans/source/win32/misc/ImplHelper.cxx +++ b/dtrans/source/win32/misc/ImplHelper.cxx @@ -41,15 +41,15 @@ #define FORMATETC_PARTIAL_MATCH -1 #define FORMATETC_NO_MATCH 0 -//------------------------------------------------------------------------ + // namespace directives -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ + + // returns a windows codepage appropriate to the // given mime charset parameter value -//------------------------------------------------------------------------ + sal_uInt32 SAL_CALL getWinCPFromMimeCharset( const OUString& charset ) { @@ -79,10 +79,10 @@ sal_uInt32 SAL_CALL getWinCPFromMimeCharset( const OUString& charset ) return winCP; } -//-------------------------------------------------- + // returns a windows codepage appropriate to the // given locale and locale type -//-------------------------------------------------- + OUString SAL_CALL getWinCPFromLocaleId( LCID lcid, LCTYPE lctype ) { @@ -129,22 +129,22 @@ OUString SAL_CALL getWinCPFromLocaleId( LCID lcid, LCTYPE lctype ) return winCP; } -//-------------------------------------------------- + // returns a mime charset parameter value appropriate // to the given codepage, optional a prefix can be // given, e.g. "windows-" or "cp" -//-------------------------------------------------- + OUString SAL_CALL getMimeCharsetFromWinCP( sal_uInt32 cp, const OUString& aPrefix ) { return aPrefix + cptostr( cp ); } -//-------------------------------------------------- + // returns a mime charset parameter value appropriate // to the given locale id and locale type, optional a // prefix can be given, e.g. "windows-" or "cp" -//-------------------------------------------------- + OUString SAL_CALL getMimeCharsetFromLocaleId( LCID lcid, LCTYPE lctype, const OUString& aPrefix ) { @@ -152,9 +152,9 @@ OUString SAL_CALL getMimeCharsetFromLocaleId( LCID lcid, LCTYPE lctype, const OU return aPrefix + charset; } -//------------------------------------------------------------------------ + // IsOEMCP -//------------------------------------------------------------------------ + sal_Bool SAL_CALL IsOEMCP( sal_uInt32 codepage ) { @@ -172,9 +172,9 @@ sal_Bool SAL_CALL IsOEMCP( sal_uInt32 codepage ) return sal_False; } -//------------------------------------------------------------------------ + // converts a codepage into its string representation -//------------------------------------------------------------------------ + OUString SAL_CALL cptostr( sal_uInt32 codepage ) { @@ -183,7 +183,7 @@ OUString SAL_CALL cptostr( sal_uInt32 codepage ) return OUString::number( static_cast<sal_Int64>( codepage ) ); } -//------------------------------------------------------------------------- + // OleStdDeleteTargetDevice() // // Purpose: @@ -192,7 +192,7 @@ OUString SAL_CALL cptostr( sal_uInt32 codepage ) // // Return Value: // SCODE - S_OK if successful -//------------------------------------------------------------------------- + void SAL_CALL DeleteTargetDevice( DVTARGETDEVICE* ptd ) { @@ -223,7 +223,7 @@ void SAL_CALL DeleteTargetDevice( DVTARGETDEVICE* ptd ) -//------------------------------------------------------------------------- + // OleStdCopyTargetDevice() // // Purpose: @@ -239,7 +239,7 @@ void SAL_CALL DeleteTargetDevice( DVTARGETDEVICE* ptd ) // pointer to allocated copy of ptdSrc // if ptdSrc==NULL then retuns NULL is returned. // if ptdSrc!=NULL and memory allocation fails, then NULL is returned -//------------------------------------------------------------------------- + DVTARGETDEVICE* SAL_CALL CopyTargetDevice( DVTARGETDEVICE* ptdSrc ) { @@ -273,7 +273,7 @@ DVTARGETDEVICE* SAL_CALL CopyTargetDevice( DVTARGETDEVICE* ptdSrc ) } -//------------------------------------------------------------------------- + // OleStdCopyFormatEtc() // // Purpose: @@ -297,7 +297,7 @@ DVTARGETDEVICE* SAL_CALL CopyTargetDevice( DVTARGETDEVICE* ptdSrc ) // returns TRUE if copy was successful; // retuns FALSE if not successful, e.g. one or both of the pointers // were invalid or the pointers were equal -//------------------------------------------------------------------------- + sal_Bool SAL_CALL CopyFormatEtc( LPFORMATETC petcDest, LPFORMATETC petcSrc ) { @@ -344,13 +344,13 @@ sal_Bool SAL_CALL CopyFormatEtc( LPFORMATETC petcDest, LPFORMATETC petcSrc ) return bRet; } -//------------------------------------------------------------------------- + // returns: // 1 for exact match, // 0 for no match, // -1 for partial match (which is defined to mean the left is a subset // of the right: fewer aspects, null target device, fewer medium). -//------------------------------------------------------------------------- + sal_Int32 SAL_CALL CompareFormatEtc( const FORMATETC* pFetcLhs, const FORMATETC* pFetcRhs ) { @@ -420,9 +420,9 @@ sal_Int32 SAL_CALL CompareFormatEtc( const FORMATETC* pFetcLhs, const FORMATETC* } -//------------------------------------------------------------------------- + // -//------------------------------------------------------------------------- + sal_Bool SAL_CALL CompareTargetDevice( DVTARGETDEVICE* ptdLeft, DVTARGETDEVICE* ptdRight ) { |