summaryrefslogtreecommitdiff
path: root/io/source/TextOutputStream
diff options
context:
space:
mode:
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>2013-11-04 13:06:32 -0200
committerStephan Bergmann <sbergman@redhat.com>2013-11-05 01:02:13 -0600
commit3a009c427fc04c0a1a100f5f04516cedd1f6f118 (patch)
tree9fc79e32d41ee9b1f47ae579a7773736dec8ee0e /io/source/TextOutputStream
parent5cf62a6ab450c25eb07a1ec08c857f17f674ef67 (diff)
fdo#60698: Merge all libs of io...
creating the libio. All these libraries are always used together, so we can put them together in one single library. This save almost 500 kb of the size of the final library. Change-Id: Ib32fec36cc4eb80ca646ce472c1f1bcdd98ac62b Reviewed-on: https://gerrit.libreoffice.org/6567 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'io/source/TextOutputStream')
-rw-r--r--io/source/TextOutputStream/TextOutputStream.cxx19
-rw-r--r--io/source/TextOutputStream/textoutstream.component25
2 files changed, 1 insertions, 43 deletions
diff --git a/io/source/TextOutputStream/TextOutputStream.cxx b/io/source/TextOutputStream/TextOutputStream.cxx
index 84f9f488c247..e26d515c025f 100644
--- a/io/source/TextOutputStream/TextOutputStream.cxx
+++ b/io/source/TextOutputStream/TextOutputStream.cxx
@@ -33,6 +33,7 @@
#include <com/sun/star/io/XTextOutputStream2.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
+#include "services.hxx"
#define IMPLEMENTATION_NAME "com.sun.star.comp.io.TextOutputStream"
#define SERVICE_NAME "com.sun.star.io.TextOutputStream"
@@ -278,22 +279,4 @@ Sequence< OUString > OTextOutputStream::getSupportedServiceNames(void) throw()
}
-using namespace io_TextOutputStream;
-
-static const struct ImplementationEntry g_entries[] =
-{
- {
- TextOutputStream_CreateInstance, TextOutputStream_getImplementationName ,
- TextOutputStream_getSupportedServiceNames, createSingleComponentFactory ,
- 0, 0
- },
- { 0, 0, 0, 0, 0, 0 }
-};
-
-extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL textoutstream_component_getFactory(
- const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
-{
- return component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey , g_entries );
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/io/source/TextOutputStream/textoutstream.component b/io/source/TextOutputStream/textoutstream.component
deleted file mode 100644
index 807489cfa36c..000000000000
--- a/io/source/TextOutputStream/textoutstream.component
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- -->
-
-<component loader="com.sun.star.loader.SharedLibrary" prefix="textoutstream"
- xmlns="http://openoffice.org/2010/uno-components">
- <implementation name="com.sun.star.comp.io.TextOutputStream">
- <service name="com.sun.star.io.TextOutputStream"/>
- </implementation>
-</component>