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
cba8c3b6
Kaydet (Commit)
cba8c3b6
authored
Ock 21, 2012
tarafından
August Sodora
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SV_DECL_PTRARR_DEL->boost::ptr_vector
üst
528aba3a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
svparser.hxx
svtools/inc/svtools/svparser.hxx
+4
-2
svparser.cxx
svtools/source/svrtf/svparser.cxx
+3
-6
No files found.
svtools/inc/svtools/svparser.hxx
Dosyayı görüntüle @
cba8c3b6
...
@@ -34,10 +34,10 @@
...
@@ -34,10 +34,10 @@
#include <tools/string.hxx>
#include <tools/string.hxx>
#include <tools/ref.hxx>
#include <tools/ref.hxx>
#include <rtl/textenc.h>
#include <rtl/textenc.h>
#include <boost/ptr_container/ptr_vector.hpp>
#include <boost/utility.hpp>
#include <boost/utility.hpp>
#include <vector>
#include <vector>
struct
SvParser_Impl
;
struct
SvParser_Impl
;
class
SvStream
;
class
SvStream
;
...
@@ -256,7 +256,9 @@ public:
...
@@ -256,7 +256,9 @@ public:
* SvKeyValueIterator.
* SvKeyValueIterator.
*
*
*======================================================================*/
*======================================================================*/
class
SvKeyValueList_Impl
;
typedef
boost
::
ptr_vector
<
SvKeyValue
>
SvKeyValueList_Impl
;
class
SVT_DLLPUBLIC
SvKeyValueIterator
:
public
SvRefBase
,
class
SVT_DLLPUBLIC
SvKeyValueIterator
:
public
SvRefBase
,
private
boost
::
noncopyable
private
boost
::
noncopyable
{
{
...
...
svtools/source/svrtf/svparser.cxx
Dosyayı görüntüle @
cba8c3b6
...
@@ -667,8 +667,6 @@ IMPL_STATIC_LINK( SvParser, NewDataRead, void*, EMPTYARG )
...
@@ -667,8 +667,6 @@ IMPL_STATIC_LINK( SvParser, NewDataRead, void*, EMPTYARG )
* SvKeyValueIterator.
* SvKeyValueIterator.
*
*
*======================================================================*/
*======================================================================*/
SV_DECL_PTRARR_DEL
(
SvKeyValueList_Impl
,
SvKeyValue
*
,
0
,
4
)
SV_IMPL_PTRARR
(
SvKeyValueList_Impl
,
SvKeyValue
*
);
/*
/*
* SvKeyValueIterator.
* SvKeyValueIterator.
...
@@ -692,7 +690,7 @@ SvKeyValueIterator::~SvKeyValueIterator (void)
...
@@ -692,7 +690,7 @@ SvKeyValueIterator::~SvKeyValueIterator (void)
*/
*/
sal_Bool
SvKeyValueIterator
::
GetFirst
(
SvKeyValue
&
rKeyVal
)
sal_Bool
SvKeyValueIterator
::
GetFirst
(
SvKeyValue
&
rKeyVal
)
{
{
m_nPos
=
m_pList
->
Count
();
m_nPos
=
m_pList
->
size
();
return
GetNext
(
rKeyVal
);
return
GetNext
(
rKeyVal
);
}
}
...
@@ -703,7 +701,7 @@ sal_Bool SvKeyValueIterator::GetNext (SvKeyValue &rKeyVal)
...
@@ -703,7 +701,7 @@ sal_Bool SvKeyValueIterator::GetNext (SvKeyValue &rKeyVal)
{
{
if
(
m_nPos
>
0
)
if
(
m_nPos
>
0
)
{
{
rKeyVal
=
*
m_pList
->
GetObject
(
--
m_nPos
)
;
rKeyVal
=
(
*
m_pList
)[
--
m_nPos
]
;
return
sal_True
;
return
sal_True
;
}
}
else
else
...
@@ -718,8 +716,7 @@ sal_Bool SvKeyValueIterator::GetNext (SvKeyValue &rKeyVal)
...
@@ -718,8 +716,7 @@ sal_Bool SvKeyValueIterator::GetNext (SvKeyValue &rKeyVal)
*/
*/
void
SvKeyValueIterator
::
Append
(
const
SvKeyValue
&
rKeyVal
)
void
SvKeyValueIterator
::
Append
(
const
SvKeyValue
&
rKeyVal
)
{
{
SvKeyValue
*
pKeyVal
=
new
SvKeyValue
(
rKeyVal
);
m_pList
->
push_back
(
new
SvKeyValue
(
rKeyVal
));
m_pList
->
C40_INSERT
(
SvKeyValue
,
pKeyVal
,
m_pList
->
Count
());
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* 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