summaryrefslogtreecommitdiff
path: root/codemaker
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2006-01-10 14:47:12 +0000
committerRüdiger Timm <rt@openoffice.org>2006-01-10 14:47:12 +0000
commit22a36fdb5c2af5b3b1b043e30bcce0f96e2f63fc (patch)
tree5acb8e7909eba32abcd303c318f27d672221c8c0 /codemaker
parent70e0d26d23645b46cac25e4cfffb056bded7456c (diff)
INTEGRATION: CWS sb41 (1.3.12); FILE MERGED
2005/11/24 08:21:09 sb 1.3.12.1: #i57855# Replaced getCppuType (which is still there for backwards compatibility) with new cppu::UnoType and helper cppu::getTypeFavourUnsigned, as GCC 4.1 started to complain about non-conforming uses of getCppuType in template code.
Diffstat (limited to 'codemaker')
-rw-r--r--codemaker/source/cppumaker/includes.cxx18
-rw-r--r--codemaker/source/cppumaker/includes.hxx7
2 files changed, 17 insertions, 8 deletions
diff --git a/codemaker/source/cppumaker/includes.cxx b/codemaker/source/cppumaker/includes.cxx
index adce6359e684..c78ff83437fc 100644
--- a/codemaker/source/cppumaker/includes.cxx
+++ b/codemaker/source/cppumaker/includes.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: includes.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 02:13:24 $
+ * last change: $Author: rt $ $Date: 2006-01-10 15:46:59 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -58,10 +58,11 @@ Includes::Includes(
m_includeAny(dependencies.hasAnyDependency()), m_includeReference(false),
m_includeSequence(dependencies.hasSequenceDependency()),
m_includeType(dependencies.hasTypeDependency()),
- m_includeCppuMacrosHxx(false), m_includeOslDoublecheckedlockingH(false),
- m_includeOslMutexHxx(false), m_includeRtlStrbufHxx(false),
- m_includeRtlStringH(false), m_includeRtlTextencH(false),
- m_includeRtlUstrbufHxx(false), m_includeRtlUstringH(false),
+ m_includeCppuMacrosHxx(false), m_includeCppuUnotypeHxx(false),
+ m_includeOslDoublecheckedlockingH(false), m_includeOslMutexHxx(false),
+ m_includeRtlStrbufHxx(false), m_includeRtlStringH(false),
+ m_includeRtlTextencH(false), m_includeRtlUstrbufHxx(false),
+ m_includeRtlUstringH(false),
m_includeRtlUstringHxx(dependencies.hasStringDependency()),
m_includeSalTypesH(
dependencies.hasBooleanDependency() || dependencies.hasByteDependency()
@@ -228,6 +229,11 @@ void Includes::dump(FileStream & out, rtl::OString const * companionHdl) {
out << ("#ifndef _CPPU_MACROS_HXX_\n"
"#include \"cppu/macros.hxx\"\n#endif\n");
}
+ if (m_includeCppuUnotypeHxx) {
+ dumpEmptyLineBeforeFirst(out, &first);
+ out << ("#ifndef INCLUDED_CPPU_UNOTYPE_HXX\n"
+ "#include \"cppu/unotype.hxx\"\n#endif\n");
+ }
if (m_includeOslDoublecheckedlockingH) {
dumpEmptyLineBeforeFirst(out, &first);
out << ("#ifndef INCLUDED_OSL_DOUBLECHECKEDLOCKING_H\n"
diff --git a/codemaker/source/cppumaker/includes.hxx b/codemaker/source/cppumaker/includes.hxx
index a662eb664664..c127cdaef7b9 100644
--- a/codemaker/source/cppumaker/includes.hxx
+++ b/codemaker/source/cppumaker/includes.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: includes.hxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 02:13:38 $
+ * last change: $Author: rt $ $Date: 2006-01-10 15:47:12 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -65,6 +65,8 @@ public:
void addCppuMacrosHxx() { m_includeCppuMacrosHxx = true; }
+ void addCppuUnotypeHxx() { m_includeCppuUnotypeHxx = true; }
+
void addOslDoublecheckedlockingH()
{ m_includeOslDoublecheckedlockingH = true; }
@@ -109,6 +111,7 @@ private:
bool m_includeSequence;
bool m_includeType;
bool m_includeCppuMacrosHxx;
+ bool m_includeCppuUnotypeHxx;
bool m_includeOslDoublecheckedlockingH;
bool m_includeOslMutexHxx;
bool m_includeRtlStrbufHxx;