diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-05-30 15:17:54 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-01 15:35:09 +0100 |
commit | 7a69e30f96afc9563fd9179a765e3d1127c73b33 (patch) | |
tree | b7aa287696100b0b5dea7de9bcfe94530f3e673f /codemaker/source/cppumaker/includes.cxx | |
parent | 9276f7d5740a28b342db2a9bcd8644ff2f4f5742 (diff) |
use rtl_Instance for the auto-generated local statics
Diffstat (limited to 'codemaker/source/cppumaker/includes.cxx')
-rw-r--r-- | codemaker/source/cppumaker/includes.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/codemaker/source/cppumaker/includes.cxx b/codemaker/source/cppumaker/includes.cxx index 02021e660522..96e8313906d3 100644 --- a/codemaker/source/cppumaker/includes.cxx +++ b/codemaker/source/cppumaker/includes.cxx @@ -60,6 +60,7 @@ Includes::Includes( m_includeRtlTextencH(false), m_includeRtlUstrbufHxx(false), m_includeRtlUstringH(false), m_includeRtlUstringHxx(dependencies.hasStringDependency()), + m_includeRtlInstanceHxx(false), m_includeSalTypesH( dependencies.hasBooleanDependency() || dependencies.hasByteDependency() || dependencies.hasShortDependency() @@ -250,6 +251,10 @@ void Includes::dump(FileStream & out, rtl::OString const * companionHdl) { dumpEmptyLineBeforeFirst(out, &first); out << ("#include \"rtl/ustring.hxx\"\n"); } + if (m_includeRtlInstanceHxx) { + dumpEmptyLineBeforeFirst(out, &first); + out << "#include \"rtl/instance.hxx\"\n"; + } if (m_includeSalTypesH) { dumpEmptyLineBeforeFirst(out, &first); out << "#include \"sal/types.h\"\n"; |