[Libreoffice-commits] core.git: 2 commits - unusedcode.easy writerfilter/source
Miklos Vajna
vmiklos at collabora.co.uk
Sat Apr 26 08:58:19 PDT 2014
unusedcode.easy | 1 -
writerfilter/source/dmapper/SdtHelper.cxx | 8 --------
writerfilter/source/dmapper/SdtHelper.hxx | 1 -
writerfilter/source/rtftok/rtfcharsets.cxx | 9 ++++++---
writerfilter/source/rtftok/rtfcharsets.hxx | 24 +++++++++++++-----------
5 files changed, 19 insertions(+), 24 deletions(-)
New commits:
commit 68c2e3d6d6392d409fd28302939309328a9ef0c1
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Sat Apr 26 17:51:36 2014 +0200
writerfilter: fix indentation in rtfcharsets
Change-Id: Id5592e10b93800560e82b4506cddb1dfcbe1043f
diff --git a/writerfilter/source/rtftok/rtfcharsets.cxx b/writerfilter/source/rtftok/rtfcharsets.cxx
index 674040b..9e84b1e 100644
--- a/writerfilter/source/rtftok/rtfcharsets.cxx
+++ b/writerfilter/source/rtftok/rtfcharsets.cxx
@@ -10,11 +10,14 @@
#include <rtfcharsets.hxx>
#include <sal/macros.h>
-namespace writerfilter {
-namespace rtftok {
+namespace writerfilter
+{
+namespace rtftok
+{
// See RTF spec v1.9.1, page 19
-RTFEncoding aRTFEncodings[] = {
+RTFEncoding aRTFEncodings[] =
+{
// charset codepage Windows / Mac name
{0, 1252}, // ANSI
{1, 0}, // Default
diff --git a/writerfilter/source/rtftok/rtfcharsets.hxx b/writerfilter/source/rtftok/rtfcharsets.hxx
index c2cca62..99e9d86 100644
--- a/writerfilter/source/rtftok/rtfcharsets.hxx
+++ b/writerfilter/source/rtftok/rtfcharsets.hxx
@@ -10,17 +10,19 @@
#ifndef INCLUDED_WRITERFILTER_SOURCE_RTFTOK_RTFCHARSETS_HXX
#define INCLUDED_WRITERFILTER_SOURCE_RTFTOK_RTFCHARSETS_HXX
-namespace writerfilter {
- namespace rtftok {
- /// RTF legacy charsets
- typedef struct
- {
- int charset;
- int codepage;
- } RTFEncoding;
- extern RTFEncoding aRTFEncodings[];
- extern int nRTFEncodings;
- } // namespace rtftok
+namespace writerfilter
+{
+namespace rtftok
+{
+/// RTF legacy charsets
+typedef struct
+{
+ int charset;
+ int codepage;
+} RTFEncoding;
+extern RTFEncoding aRTFEncodings[];
+extern int nRTFEncodings;
+} // namespace rtftok
} // namespace writerfilter
#endif // INCLUDED_WRITERFILTER_SOURCE_RTFTOK_RTFCHARSETS_HXX
commit 4d0e97f33d559cf3004ee41735b1dd57b584e95c
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Sat Apr 26 17:48:37 2014 +0200
writerfilter: unused appendToInteropGrabBag() version
Change-Id: Ie00332fcaaf3a78516569b010ac2ff7e2c259b28
diff --git a/unusedcode.easy b/unusedcode.easy
index e3a896f..4ba0403 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -238,4 +238,3 @@ std::auto_ptr<formula::FormulaTokenArray>::auto_ptr(std::auto_ptr_ref<formula::F
std::vector<rtl::Reference<oox::xls::(anonymous namespace)::WorkerThread>, std::allocator<rtl::Reference<oox::xls::(anonymous namespace)::WorkerThread> > >::reserve(unsigned long)
utl::extractTime(com::sun::star::util::DateTime const&, com::sun::star::util::Time&)
vcl::MapChar(vcl::_TrueTypeFont*, unsigned short, bool)
-writerfilter::dmapper::SdtHelper::appendToInteropGrabBag(rtl::OUString const&, com::sun::star::uno::Any const&)
diff --git a/writerfilter/source/dmapper/SdtHelper.cxx b/writerfilter/source/dmapper/SdtHelper.cxx
index ad3c315..a18f84d 100644
--- a/writerfilter/source/dmapper/SdtHelper.cxx
+++ b/writerfilter/source/dmapper/SdtHelper.cxx
@@ -188,14 +188,6 @@ bool SdtHelper::hasElements()
return m_bHasElements;
}
-void SdtHelper::appendToInteropGrabBag(const OUString& rName, const css::uno::Any& rValue)
-{
- sal_Int32 nLength = m_aGrabBag.getLength();
- m_aGrabBag.realloc(nLength + 1);
- m_aGrabBag[nLength].Name = rName;
- m_aGrabBag[nLength].Value = rValue;
-}
-
void SdtHelper::appendToInteropGrabBag(com::sun::star::beans::PropertyValue rValue)
{
sal_Int32 nLength = m_aGrabBag.getLength();
diff --git a/writerfilter/source/dmapper/SdtHelper.hxx b/writerfilter/source/dmapper/SdtHelper.hxx
index c68c4d0..9e730b2 100644
--- a/writerfilter/source/dmapper/SdtHelper.hxx
+++ b/writerfilter/source/dmapper/SdtHelper.hxx
@@ -82,7 +82,6 @@ public:
/// Create date control from w:sdt's w:date.
void createDateControl(OUString& rContentText);
- void appendToInteropGrabBag(const OUString& rName, const css::uno::Any& rValue);
void appendToInteropGrabBag(com::sun::star::beans::PropertyValue rValue);
com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> getInteropGrabBagAndClear();
bool isInteropGrabBagEmpty();
More information about the Libreoffice-commits
mailing list