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
be4d2cdc
Kaydet (Commit)
be4d2cdc
authored
Eyl 09, 2013
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
unusedcode: remove AttributeListImpl
Change-Id: I9c3c0d742bc2941fcf40ad69bfb744a57b3e7be6
üst
18ac4a1b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
142 deletions
+0
-142
xmlaccelcfg.cxx
unotools/source/config/xmlaccelcfg.cxx
+0
-140
unusedcode.easy
unusedcode.easy
+0
-2
No files found.
unotools/source/config/xmlaccelcfg.cxx
Dosyayı görüntüle @
be4d2cdc
...
...
@@ -35,146 +35,6 @@ using namespace com::sun::star::xml::sax;
#define ATTRIBUTE_MODIFIER "modifier"
#define ATTRIBUTE_URL "url"
namespace
{
struct
AttributeListImpl_impl
;
class
AttributeListImpl
:
public
::
cppu
::
WeakImplHelper1
<
::
com
::
sun
::
star
::
xml
::
sax
::
XAttributeList
>
{
protected
:
~
AttributeListImpl
();
public
:
AttributeListImpl
();
AttributeListImpl
(
const
AttributeListImpl
&
);
public
:
virtual
sal_Int16
SAL_CALL
getLength
(
void
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
OUString
SAL_CALL
getNameByIndex
(
sal_Int16
i
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
OUString
SAL_CALL
getTypeByIndex
(
sal_Int16
i
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
OUString
SAL_CALL
getTypeByName
(
const
OUString
&
aName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
OUString
SAL_CALL
getValueByIndex
(
sal_Int16
i
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
OUString
SAL_CALL
getValueByName
(
const
OUString
&
aName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
public
:
void
addAttribute
(
const
OUString
&
sName
,
const
OUString
&
sType
,
const
OUString
&
sValue
);
private
:
struct
AttributeListImpl_impl
*
m_pImpl
;
};
struct
TagAttribute
{
TagAttribute
(){}
TagAttribute
(
const
OUString
&
aName
,
const
OUString
&
aType
,
const
OUString
&
aValue
)
{
sName
=
aName
;
sType
=
aType
;
sValue
=
aValue
;
}
OUString
sName
;
OUString
sType
;
OUString
sValue
;
};
struct
AttributeListImpl_impl
{
AttributeListImpl_impl
()
{
// performance improvement during adding
vecAttribute
.
reserve
(
20
);
}
::
std
::
vector
<
struct
TagAttribute
>
vecAttribute
;
};
sal_Int16
SAL_CALL
AttributeListImpl
::
getLength
(
void
)
throw
(
RuntimeException
)
{
return
sal
::
static_int_cast
<
sal_Int16
>
(
m_pImpl
->
vecAttribute
.
size
());
}
AttributeListImpl
::
AttributeListImpl
(
const
AttributeListImpl
&
r
)
:
cppu
::
WeakImplHelper1
<
com
::
sun
::
star
::
xml
::
sax
::
XAttributeList
>
(
r
)
{
m_pImpl
=
new
AttributeListImpl_impl
;
*
m_pImpl
=
*
(
r
.
m_pImpl
);
}
OUString
AttributeListImpl
::
getNameByIndex
(
sal_Int16
i
)
throw
(
RuntimeException
)
{
if
(
i
<
sal
::
static_int_cast
<
sal_Int16
>
(
m_pImpl
->
vecAttribute
.
size
())
)
{
return
m_pImpl
->
vecAttribute
[
i
].
sName
;
}
return
OUString
();
}
OUString
AttributeListImpl
::
getTypeByIndex
(
sal_Int16
i
)
throw
(
RuntimeException
)
{
if
(
i
<
sal
::
static_int_cast
<
sal_Int16
>
(
m_pImpl
->
vecAttribute
.
size
())
)
{
return
m_pImpl
->
vecAttribute
[
i
].
sType
;
}
return
OUString
();
}
OUString
AttributeListImpl
::
getValueByIndex
(
sal_Int16
i
)
throw
(
RuntimeException
)
{
if
(
i
<
sal
::
static_int_cast
<
sal_Int16
>
(
m_pImpl
->
vecAttribute
.
size
())
)
{
return
m_pImpl
->
vecAttribute
[
i
].
sValue
;
}
return
OUString
();
}
OUString
AttributeListImpl
::
getTypeByName
(
const
OUString
&
sName
)
throw
(
RuntimeException
)
{
::
std
::
vector
<
struct
TagAttribute
>::
iterator
ii
=
m_pImpl
->
vecAttribute
.
begin
();
for
(
;
ii
!=
m_pImpl
->
vecAttribute
.
end
()
;
++
ii
)
{
if
(
(
*
ii
).
sName
==
sName
)
{
return
(
*
ii
).
sType
;
}
}
return
OUString
();
}
OUString
AttributeListImpl
::
getValueByName
(
const
OUString
&
sName
)
throw
(
RuntimeException
)
{
::
std
::
vector
<
struct
TagAttribute
>::
iterator
ii
=
m_pImpl
->
vecAttribute
.
begin
();
for
(
;
ii
!=
m_pImpl
->
vecAttribute
.
end
()
;
++
ii
)
{
if
(
(
*
ii
).
sName
==
sName
)
{
return
(
*
ii
).
sValue
;
}
}
return
OUString
();
}
AttributeListImpl
::
AttributeListImpl
()
{
m_pImpl
=
new
AttributeListImpl_impl
;
}
AttributeListImpl
::~
AttributeListImpl
()
{
delete
m_pImpl
;
}
void
AttributeListImpl
::
addAttribute
(
const
OUString
&
sName
,
const
OUString
&
sType
,
const
OUString
&
sValue
)
{
m_pImpl
->
vecAttribute
.
push_back
(
TagAttribute
(
sName
,
sType
,
sValue
)
);
}
}
// anonymous namespace
Any
SAL_CALL
OReadAccelatorDocumentHandler
::
queryInterface
(
const
Type
&
rType
)
throw
(
RuntimeException
)
{
Any
a
=
::
cppu
::
queryInterface
(
rType
,(
static_cast
<
XDocumentHandler
*
>
(
this
)));
...
...
unusedcode.easy
Dosyayı görüntüle @
be4d2cdc
(anonymous namespace)::AttributeListImpl::AttributeListImpl()
(anonymous namespace)::AttributeListImpl::addAttribute(rtl::OUString const&, rtl::OUString const&, rtl::OUString const&)
(anonymous namespace)::Coverage::test_start(rtl::OUString)
(anonymous namespace)::StringToken::toInt32(int&) const
(anonymous namespace)::StringTokenizer::StringTokenizer(rtl::OUString const&, unsigned short)
...
...
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