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
155cd09b
Kaydet (Commit)
155cd09b
authored
Kas 28, 2012
tarafından
Thorsten Behrens
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove some commented-out or otherwise unused code.
üst
0295bd6b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
43 deletions
+3
-43
cpputype.cxx
codemaker/source/cppumaker/cpputype.cxx
+3
-36
cpputype.hxx
codemaker/source/cppumaker/cpputype.hxx
+0
-7
No files found.
codemaker/source/cppumaker/cpputype.cxx
Dosyayı görüntüle @
155cd09b
...
...
@@ -1102,15 +1102,9 @@ void CppuType::dumpCppuGetType(FileStream& o, const OString& type, sal_Bool bDec
m_typeMgr
.
getTypeClass
(
relType
)
==
RT_TYPE_INTERFACE
)
return
;
// if (m_typeMgr.getTypeClass(type) == RT_TYPE_TYPEDEF)
// {
// o << indent() << "get_" << type.replace('/', '_') << "_Type()";
// } else
// {
o
<<
indent
()
<<
"::cppu::UnoType< "
;
dumpType
(
o
,
type
,
false
,
false
,
false
,
true
);
o
<<
" >::get()"
;
// }
o
<<
indent
()
<<
"::cppu::UnoType< "
;
dumpType
(
o
,
type
,
false
,
false
,
false
,
true
);
o
<<
" >::get()"
;
}
if
(
bDecl
)
o
<<
";
\n
"
;
...
...
@@ -1400,10 +1394,6 @@ sal_Bool InterfaceType::dumpHFile(
void
InterfaceType
::
dumpDeclaration
(
FileStream
&
o
)
throw
(
CannotDumpException
)
{
// rtl::OString cppName(translateUnoToCppIdentifier(
// m_name, "interface", ITM_KEYWORDSONLY, &m_name));
// o << "\nclass SAL_NO_VTABLE " << cppName;
o
<<
"
\n
class SAL_NO_VTABLE "
<<
m_name
;
for
(
sal_Int16
i
=
0
;
i
<
m_reader
.
getSuperTypeCount
();
++
i
)
{
...
...
@@ -1445,9 +1435,6 @@ sal_Bool InterfaceType::dumpHxxFile(
dumpGetCppuType
(
o
);
// rtl::OString cppName(translateUnoToCppIdentifier(
// m_name, "interface", ITM_KEYWORDSONLY, &m_name));
o
<<
"
\n
::com::sun::star::uno::Type const & "
<<
scopedCppName
(
m_typeName
)
<<
"::static_type(SAL_UNUSED_PARAMETER void *) {
\n
"
;
...
...
@@ -1523,7 +1510,6 @@ void InterfaceType::dumpMethods(FileStream& o)
sal_Bool
bRef
=
sal_False
;
sal_Bool
bConst
=
sal_False
;
sal_Bool
bWithRunTimeExcp
=
sal_True
;
for
(
sal_uInt16
i
=
0
;
i
<
methodCount
;
i
++
)
{
...
...
@@ -1540,11 +1526,6 @@ void InterfaceType::dumpMethods(FileStream& o)
m_reader
.
getMethodReturnTypeName
(
i
),
RTL_TEXTENCODING_UTF8
);
paramCount
=
m_reader
.
getMethodParameterCount
(
i
);
if
(
methodName
.
equals
(
"acquire"
)
||
methodName
.
equals
(
"release"
)
)
{
bWithRunTimeExcp
=
sal_False
;
}
if
(
first
)
{
first
=
sal_False
;
...
...
@@ -1584,8 +1565,6 @@ void InterfaceType::dumpMethods(FileStream& o)
}
dumpType
(
o
,
paramType
,
bConst
,
bRef
);
// o << " " << translateUnoToCppIdentifier(
// paramName, "param", ITM_KEYWORDSONLY, NULL);
o
<<
" "
<<
paramName
;
if
(
j
+
1
<
(
sal_uInt16
)
paramCount
)
o
<<
", "
;
...
...
@@ -2635,7 +2614,6 @@ sal_Bool StructureType::dumpHxxFile(
}
else
{
dumpType
(
o
,
fieldType
,
sal_True
,
sal_True
);
}
// o << " __" << fieldName;
o
<<
" "
<<
fieldName
<<
"_"
;
}
o
<<
") // throw()
\n
"
;
...
...
@@ -2667,7 +2645,6 @@ sal_Bool StructureType::dumpHxxFile(
}
else
o
<<
indent
()
<<
", "
;
// o << fieldName << "(__" << fieldName << ")\n";
o
<<
fieldName
<<
"("
<<
fieldName
<<
"_)
\n
"
;
}
...
...
@@ -3085,7 +3062,6 @@ sal_Bool StructureType::dumpSuperMember(FileStream& o, const OString& superType,
dumpType
(
o
,
fieldType
,
sal_True
,
sal_True
);
o
<<
" "
;
}
// o << "__" << fieldName;
o
<<
fieldName
<<
"_"
;
}
}
...
...
@@ -3256,7 +3232,6 @@ void ExceptionType::dumpDeclaration(FileStream& o)
superHasMember
=
sal_True
;
dumpType
(
o
,
fieldType
,
sal_True
,
sal_True
);
// o << " __" << fieldName;
o
<<
" "
<<
fieldName
<<
"_"
;
}
o
<<
"); // throw()
\n\n
"
;
...
...
@@ -3388,7 +3363,6 @@ sal_Bool ExceptionType::dumpHxxFile(
superHasMember
=
sal_True
;
dumpType
(
o
,
fieldType
,
sal_True
,
sal_True
);
// o << " __" << fieldName;
o
<<
" "
<<
fieldName
<<
"_"
;
}
o
<<
") // throw()
\n
"
;
...
...
@@ -3420,7 +3394,6 @@ sal_Bool ExceptionType::dumpHxxFile(
}
else
o
<<
indent
()
<<
", "
;
// o << fieldName << "(__" << fieldName << ")\n";
o
<<
fieldName
<<
"("
<<
fieldName
<<
"_)
\n
"
;
}
...
...
@@ -3530,7 +3503,6 @@ sal_Bool ExceptionType::dumpSuperMember(FileStream& o, const OString& superType,
dumpType
(
o
,
fieldType
,
sal_True
,
sal_True
);
o
<<
" "
;
}
// o << "__" << fieldName;
o
<<
fieldName
<<
"_"
;
}
}
...
...
@@ -3762,11 +3734,6 @@ sal_Bool TypeDefType::dumpHFile(
o
<<
"
\n
"
;
}
// o << "\nnamespace com { namespace sun { namespace star { namespace uno {\n"
// << "class Type;\n} } } }\n\n";
// o << "inline const ::com::sun::star::uno::Type& SAL_CALL get_" << m_typeName.replace('/', '_')
// << "_Type( ) SAL_THROW(());\n\n";
o
<<
"#endif // "
<<
headerDefine
<<
"
\n
"
;
return
sal_True
;
...
...
codemaker/source/cppumaker/cpputype.hxx
Dosyayı görüntüle @
155cd09b
...
...
@@ -387,13 +387,6 @@ bool produceType(RegistryKey& typeName, bool bIsExtraType,
CppuOptions
*
pOptions
)
throw
(
CannotDumpException
);
/**
* This function returns a C++ scoped name, represents the namespace
* scoping of this type, e.g. com:.sun::star::uno::XInterface.
*/
// ::rtl::OString scopedName(const ::rtl::OString& scope, const ::rtl::OString& type,
// sal_Bool bNoNameSpace=sal_False);
#endif // INCLUDED_CODEMAKER_SOURCE_CPPUMAKER_CPPUTYPE_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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