summaryrefslogtreecommitdiff
path: root/sdext/source/pdfimport/tree/imagecontainer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sdext/source/pdfimport/tree/imagecontainer.cxx')
-rw-r--r--sdext/source/pdfimport/tree/imagecontainer.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/sdext/source/pdfimport/tree/imagecontainer.cxx b/sdext/source/pdfimport/tree/imagecontainer.cxx
index 9b9cc92..2543383 100644
--- a/sdext/source/pdfimport/tree/imagecontainer.cxx
+++ b/sdext/source/pdfimport/tree/imagecontainer.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,7 +53,7 @@ using namespace com::sun::star;
namespace pdfi
{
-namespace
+namespace
{
static const sal_Char aBase64EncodeTable[] =
@@ -76,16 +76,16 @@ rtl::OUString encodeBase64( const sal_Int8* i_pBuffer, const sal_uInt32 i_nBuffe
((sal_uInt8)i_pBuffer[i + 2]);
aBuf.appendAscii("====");
-
+
sal_uInt8 nIndex (static_cast<sal_uInt8>((nBinary & 0xFC0000) >> 18));
aBuf.setCharAt(nBufPos, aBase64EncodeTable [nIndex]);
-
+
nIndex = static_cast<sal_uInt8>((nBinary & 0x3F000) >> 12);
aBuf.setCharAt(nBufPos+1, aBase64EncodeTable [nIndex]);
-
+
nIndex = static_cast<sal_uInt8>((nBinary & 0xFC0) >> 6);
aBuf.setCharAt(nBufPos+2, aBase64EncodeTable [nIndex]);
-
+
nIndex = static_cast<sal_uInt8>((nBinary & 0x3F));
aBuf.setCharAt(nBufPos+3, aBase64EncodeTable [nIndex]);
}
@@ -104,21 +104,21 @@ rtl::OUString encodeBase64( const sal_Int8* i_pBuffer, const sal_uInt32 i_nBuffe
}
sal_uInt8 nIndex (static_cast<sal_uInt8>((nBinary & 0xFC0000) >> 18));
aBuf.setCharAt(nBufPos, aBase64EncodeTable [nIndex]);
-
+
nIndex = static_cast<sal_uInt8>((nBinary & 0x3F000) >> 12);
aBuf.setCharAt(nBufPos+1, aBase64EncodeTable [nIndex]);
-
+
if( nRemain == 2 )
{
nIndex = static_cast<sal_uInt8>((nBinary & 0xFC0) >> 6);
aBuf.setCharAt(nBufPos+2, aBase64EncodeTable [nIndex]);
}
}
-
+
return aBuf.makeStringAndClear();
}
-} // namespace
+} // namespace
ImageContainer::ImageContainer() :
m_aImages()