Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
df68f63f
Kaydet (Commit)
df68f63f
authored
Ock 03, 2012
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Leak comprehensive type descriptions to avoid problems at exit.
üst
82e385c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
25 deletions
+20
-25
cpputype.cxx
codemaker/source/cppumaker/cpputype.cxx
+20
-25
No files found.
codemaker/source/cppumaker/cpputype.cxx
Dosyayı görüntüle @
df68f63f
...
...
@@ -715,10 +715,10 @@ void CppuType::dumpComprehensiveGetCppuType(FileStream& o)
OString
sType
=
m_typeName
.
copy
(
m_typeName
.
lastIndexOf
(
'/'
)
+
1
);
OString
sStaticTypeClass
=
"the"
+
sType
+
"Type"
;
o
<<
indent
()
<<
"struct "
<<
sStaticTypeClass
<<
" : public rtl::StaticWithInit< ::com::sun::star::uno::Type, "
<<
sStaticTypeClass
<<
" >
\n
"
;
o
<<
indent
()
<<
"struct "
<<
sStaticTypeClass
<<
" : public rtl::StaticWithInit< ::com::sun::star::uno::Type
*
, "
<<
sStaticTypeClass
<<
" >
\n
"
;
o
<<
indent
()
<<
"{
\n
"
;
inc
();
o
<<
indent
()
<<
"::com::sun::star::uno::Type operator()() const
\n
"
;
o
<<
indent
()
<<
"::com::sun::star::uno::Type
*
operator()() const
\n
"
;
o
<<
indent
()
<<
"{
\n
"
;
inc
();
...
...
@@ -807,9 +807,8 @@ void CppuType::dumpComprehensiveGetCppuType(FileStream& o)
o
<<
indent
()
<<
"typelib_typedescription_release( pTD );
\n
"
<<
indent
()
<<
"// End inline typedescription generation
\n\n
"
;
o
<<
indent
()
<<
"::com::sun::star::uno::Type the_staticType( "
<<
getTypeClass
(
m_typeName
)
<<
", sTypeName );
\n
"
;
o
<<
indent
()
<<
"return the_staticType;
\n
"
;
o
<<
indent
()
<<
"return new ::com::sun::star::uno::Type( "
<<
getTypeClass
(
m_typeName
)
<<
", sTypeName ); // leaked
\n
"
;
dec
();
o
<<
indent
()
<<
"}
\n
"
;
...
...
@@ -824,7 +823,7 @@ void CppuType::dumpComprehensiveGetCppuType(FileStream& o)
o
<<
" }
\n\n
"
;
dumpGetCppuTypePreamble
(
o
);
o
<<
indent
()
<<
"return detail::"
<<
sStaticTypeClass
<<
"::get();
\n
"
;
o
<<
indent
()
<<
"return
*
detail::"
<<
sStaticTypeClass
<<
"::get();
\n
"
;
dumpGetCppuTypePostamble
(
o
);
}
...
...
@@ -1633,10 +1632,10 @@ void InterfaceType::dumpComprehensiveGetCppuType(FileStream& o)
OString
sType
=
m_typeName
.
copy
(
m_typeName
.
lastIndexOf
(
'/'
)
+
1
);
OString
sStaticTypeClass
=
"the"
+
sType
+
"Type"
;
o
<<
indent
()
<<
"struct "
<<
sStaticTypeClass
<<
" : public rtl::StaticWithInit< ::com::sun::star::uno::Type, "
<<
sStaticTypeClass
<<
" >
\n
"
;
o
<<
indent
()
<<
"struct "
<<
sStaticTypeClass
<<
" : public rtl::StaticWithInit< ::com::sun::star::uno::Type
*
, "
<<
sStaticTypeClass
<<
" >
\n
"
;
o
<<
indent
()
<<
"{
\n
"
;
inc
();
o
<<
indent
()
<<
"::com::sun::star::uno::Type operator()() const
\n
"
;
o
<<
indent
()
<<
"::com::sun::star::uno::Type
*
operator()() const
\n
"
;
o
<<
indent
()
<<
"{
\n
"
;
inc
();
...
...
@@ -1710,10 +1709,8 @@ void InterfaceType::dumpComprehensiveGetCppuType(FileStream& o)
<<
(
"typelib_typedescription_release( (typelib_TypeDescription*)pTD"
" );
\n\n
"
);
o
<<
indent
()
<<
"::com::sun::star::uno::Type the_staticType( "
<<
getTypeClass
(
m_typeName
)
<<
", sTypeName );
\n
"
;
o
<<
indent
()
<<
"return the_staticType;
\n
"
;
o
<<
indent
()
<<
"return new ::com::sun::star::uno::Type( "
<<
getTypeClass
(
m_typeName
)
<<
", sTypeName ); // leaked
\n
"
;
dec
();
...
...
@@ -1728,7 +1725,7 @@ void InterfaceType::dumpComprehensiveGetCppuType(FileStream& o)
o
<<
" }
\n\n
"
;
dumpGetCppuTypePreamble
(
o
);
o
<<
indent
()
<<
"const ::com::sun::star::uno::Type &rRet = detail::"
<<
sStaticTypeClass
<<
"::get();
\n
"
;
o
<<
indent
()
<<
"const ::com::sun::star::uno::Type &rRet =
*
detail::"
<<
sStaticTypeClass
<<
"::get();
\n
"
;
o
<<
indent
()
<<
"// End inline typedescription generation
\n
"
;
...
...
@@ -2915,7 +2912,7 @@ void StructureType::dumpComprehensiveGetCppuType(FileStream & out)
out
<<
indent
();
if
(
isPolymorphic
())
dumpTemplateHead
(
out
);
out
<<
"struct "
<<
sStaticTypeClass
<<
" : public rtl::StaticWithInit< ::com::sun::star::uno::Type, "
;
out
<<
"struct "
<<
sStaticTypeClass
<<
" : public rtl::StaticWithInit< ::com::sun::star::uno::Type
*
, "
;
out
<<
sStaticTypeClass
;
if
(
isPolymorphic
())
dumpTemplateParameters
(
out
);
...
...
@@ -2923,7 +2920,7 @@ void StructureType::dumpComprehensiveGetCppuType(FileStream & out)
out
<<
indent
()
<<
"{
\n
"
;
inc
();
out
<<
indent
()
<<
"::com::sun::star::uno::Type operator()() const
\n
"
;
out
<<
indent
()
<<
"::com::sun::star::uno::Type
*
operator()() const
\n
"
;
out
<<
indent
()
<<
"{
\n
"
;
inc
();
...
...
@@ -3050,9 +3047,8 @@ void StructureType::dumpComprehensiveGetCppuType(FileStream & out)
out
<<
indent
()
<<
"::typelib_typedescription_register(&the_newType);
\n
"
;
out
<<
indent
()
<<
"::typelib_typedescription_release(the_newType);
\n
"
;
out
<<
indent
()
<<
"::com::sun::star::uno::Type the_staticType("
<<
getTypeClass
(
m_typeName
)
<<
", the_name);
\n
"
;
out
<<
indent
()
<<
"return the_staticType;
\n
"
;
out
<<
indent
()
<<
"return new ::com::sun::star::uno::Type("
<<
getTypeClass
(
m_typeName
)
<<
", the_name); // leaked
\n
"
;
dec
();
out
<<
indent
()
<<
"}
\n
"
;
dec
();
...
...
@@ -3065,7 +3061,7 @@ void StructureType::dumpComprehensiveGetCppuType(FileStream & out)
out
<<
" }
\n\n
"
;
dumpGetCppuTypePreamble
(
out
);
out
<<
indent
()
<<
"return detail::"
<<
sStaticTypeClass
;
out
<<
indent
()
<<
"return
*
detail::"
<<
sStaticTypeClass
;
if
(
isPolymorphic
())
dumpTemplateParameters
(
out
);
out
<<
"::get();
\n
"
;
...
...
@@ -3683,10 +3679,10 @@ void EnumType::dumpComprehensiveGetCppuType(FileStream& o)
OString
sType
=
m_typeName
.
copy
(
m_typeName
.
lastIndexOf
(
'/'
)
+
1
);
OString
sStaticTypeClass
=
"the"
+
sType
+
"Type"
;
o
<<
indent
()
<<
"struct "
<<
sStaticTypeClass
<<
" : public rtl::StaticWithInit< ::com::sun::star::uno::Type, "
<<
sStaticTypeClass
<<
" >
\n
"
;
o
<<
indent
()
<<
"struct "
<<
sStaticTypeClass
<<
" : public rtl::StaticWithInit< ::com::sun::star::uno::Type
*
, "
<<
sStaticTypeClass
<<
" >
\n
"
;
o
<<
indent
()
<<
"{
\n
"
;
inc
();
o
<<
indent
()
<<
"::com::sun::star::uno::Type operator()() const
\n
"
;
o
<<
indent
()
<<
"::com::sun::star::uno::Type
*
operator()() const
\n
"
;
o
<<
indent
()
<<
"{
\n
"
;
inc
();
...
...
@@ -3740,9 +3736,8 @@ void EnumType::dumpComprehensiveGetCppuType(FileStream& o)
o
<<
indent
()
<<
"typelib_typedescription_release( pTD );
\n
"
<<
indent
()
<<
"// End inline typedescription generation
\n\n
"
;
o
<<
indent
()
<<
"::com::sun::star::uno::Type the_staticType( "
<<
getTypeClass
(
m_typeName
)
<<
", sTypeName );
\n
"
;
o
<<
indent
()
<<
"return the_staticType;
\n
"
;
o
<<
indent
()
<<
"return new ::com::sun::star::uno::Type( "
<<
getTypeClass
(
m_typeName
)
<<
", sTypeName ); // leaked
\n
"
;
dec
();
o
<<
indent
()
<<
"}
\n
"
;
...
...
@@ -3756,7 +3751,7 @@ void EnumType::dumpComprehensiveGetCppuType(FileStream& o)
o
<<
" }
\n\n
"
;
dumpGetCppuTypePreamble
(
o
);
o
<<
indent
()
<<
"return detail::"
<<
sStaticTypeClass
<<
"::get();
\n
"
;
o
<<
indent
()
<<
"return
*
detail::"
<<
sStaticTypeClass
<<
"::get();
\n
"
;
dumpGetCppuTypePostamble
(
o
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment