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
fd014c0e
Kaydet (Commit)
fd014c0e
authored
Tem 26, 2013
tarafından
Herbert Dürr
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#i122853# replace use of size() method for single linked lists
üst
d7c2bf91
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
15 deletions
+14
-15
estack.hxx
autodoc/source/inc/estack.hxx
+0
-1
sownstck.hxx
autodoc/source/parser/cpp/sownstck.hxx
+14
-14
No files found.
autodoc/source/inc/estack.hxx
Dosyayı görüntüle @
fd014c0e
...
@@ -74,7 +74,6 @@ class EStack : private std::slist<ELEM>
...
@@ -74,7 +74,6 @@ class EStack : private std::slist<ELEM>
// INQUIRY
// INQUIRY
const
value_type
&
top
()
const
{
return
base
::
front
();
}
const
value_type
&
top
()
const
{
return
base
::
front
();
}
size_type
size
()
const
{
return
base
::
size
();
}
bool
empty
()
const
{
return
base
::
empty
();
}
bool
empty
()
const
{
return
base
::
empty
();
}
// ACCESS
// ACCESS
...
...
autodoc/source/parser/cpp/sownstck.hxx
Dosyayı görüntüle @
fd014c0e
...
@@ -121,7 +121,7 @@ inline ary::cpp::Class *
...
@@ -121,7 +121,7 @@ inline ary::cpp::Class *
ContextForAry
::
ContextForAry
::
S_OwnerStack
::
CurClass
()
const
S_OwnerStack
::
CurClass
()
const
{
{
return
aStack_Classes
.
size
()
>
0
return
!
aStack_Classes
.
empty
()
?
aStack_Classes
.
top
().
first
?
aStack_Classes
.
top
().
first
:
(
ary
::
cpp
::
Class
*
)
0
;
:
(
ary
::
cpp
::
Class
*
)
0
;
}
}
...
@@ -130,7 +130,7 @@ inline void
...
@@ -130,7 +130,7 @@ inline void
ContextForAry
::
ContextForAry
::
S_OwnerStack
::
SetOwner_2CurNamespace
()
S_OwnerStack
::
SetOwner_2CurNamespace
()
{
{
csv_assert
(
aStack_Namespaces
.
size
()
>
0
);
csv_assert
(
!
aStack_Namespaces
.
empty
()
);
pOwner_Cur
=
pOwner_Namespace
.
MutablePtr
();
pOwner_Cur
=
pOwner_Namespace
.
MutablePtr
();
pOwner_Namespace
->
SetAnotherNamespace
(
CurNamespace
()
);
pOwner_Namespace
->
SetAnotherNamespace
(
CurNamespace
()
);
}
}
...
@@ -139,7 +139,7 @@ inline void
...
@@ -139,7 +139,7 @@ inline void
ContextForAry
::
ContextForAry
::
S_OwnerStack
::
SetOwner_2CurClass
()
S_OwnerStack
::
SetOwner_2CurClass
()
{
{
csv_assert
(
aStack_Classes
.
size
()
>
0
);
csv_assert
(
!
aStack_Classes
.
empty
()
);
pOwner_Cur
=
pOwner_Class
.
MutablePtr
();
pOwner_Cur
=
pOwner_Class
.
MutablePtr
();
pOwner_Class
->
SetAnotherClass
(
*
CurClass
()
);
pOwner_Class
->
SetAnotherClass
(
*
CurClass
()
);
}
}
...
@@ -173,7 +173,7 @@ inline void
...
@@ -173,7 +173,7 @@ inline void
ContextForAry
::
ContextForAry
::
S_OwnerStack
::
SetGlobalNamespace
(
ary
::
cpp
::
Namespace
&
io_rGlobalNamespace
)
S_OwnerStack
::
SetGlobalNamespace
(
ary
::
cpp
::
Namespace
&
io_rGlobalNamespace
)
{
{
csv_assert
(
aStack_Namespaces
.
size
()
==
0
);
csv_assert
(
aStack_Namespaces
.
empty
()
);
aStack_Namespaces
.
push
(
&
io_rGlobalNamespace
);
aStack_Namespaces
.
push
(
&
io_rGlobalNamespace
);
SetOwner_2CurNamespace
();
SetOwner_2CurNamespace
();
}
}
...
@@ -187,7 +187,7 @@ inline void
...
@@ -187,7 +187,7 @@ inline void
ContextForAry
::
ContextForAry
::
S_OwnerStack
::
OpenNamespace
(
ary
::
cpp
::
Namespace
&
io_rOpenedNamespace
)
S_OwnerStack
::
OpenNamespace
(
ary
::
cpp
::
Namespace
&
io_rOpenedNamespace
)
{
{
csv_assert
(
aStack_Namespaces
.
size
()
>
0
OR
io_rOpenedNamespace
.
Parent
()
==
0
);
csv_assert
(
!
aStack_Namespaces
.
empty
()
OR
io_rOpenedNamespace
.
Parent
()
==
0
);
aStack_Namespaces
.
push
(
&
io_rOpenedNamespace
);
aStack_Namespaces
.
push
(
&
io_rOpenedNamespace
);
SetOwner_2CurNamespace
();
SetOwner_2CurNamespace
();
}
}
...
@@ -228,7 +228,7 @@ inline E_Protection
...
@@ -228,7 +228,7 @@ inline E_Protection
ContextForAry
::
ContextForAry
::
S_OwnerStack
::
CurProtection
()
const
S_OwnerStack
::
CurProtection
()
const
{
{
return
aStack_Classes
.
size
()
>
0
return
!
aStack_Classes
.
empty
()
?
aStack_Classes
.
top
().
second
?
aStack_Classes
.
top
().
second
:
ary
::
cpp
::
PROTECT_global
;
:
ary
::
cpp
::
PROTECT_global
;
}
}
...
@@ -271,15 +271,15 @@ S_OwnerStack::CloseBlock()
...
@@ -271,15 +271,15 @@ S_OwnerStack::CloseBlock()
}
}
else
else
{
{
// csv_assert( aStack_Classes.
size() == 0
);
// csv_assert( aStack_Classes.
empty()
);
if
(
aStack_Classes
.
size
()
>
0
)
if
(
!
aStack_Classes
.
empty
()
)
throw
X_Parser
(
X_Parser
::
x_UnspecifiedSyntaxError
,
""
,
String
::
Null_
(),
0
);
throw
X_Parser
(
X_Parser
::
x_UnspecifiedSyntaxError
,
""
,
String
::
Null_
(),
0
);
csv_assert
(
pCurEnum
==
0
);
csv_assert
(
pCurEnum
==
0
);
aStack_Namespaces
.
pop
();
aStack_Namespaces
.
pop
();
// csv_assert(
aStack_Namespaces.size() > 0
);
// csv_assert(
!aStack_Namespaces.empty()
);
if
(
aStack_Namespaces
.
size
()
==
0
)
if
(
aStack_Namespaces
.
empty
()
)
throw
X_Parser
(
X_Parser
::
x_UnspecifiedSyntaxError
,
""
,
String
::
Null_
(),
0
);
throw
X_Parser
(
X_Parser
::
x_UnspecifiedSyntaxError
,
""
,
String
::
Null_
(),
0
);
}
}
...
@@ -290,12 +290,12 @@ void
...
@@ -290,12 +290,12 @@ void
ContextForAry
::
ContextForAry
::
S_OwnerStack
::
CloseClass
()
S_OwnerStack
::
CloseClass
()
{
{
// csv_assert(
aStack_Classes.size() > 0
);
// csv_assert(
!aStack_Classes.empty()
);
if
(
aStack_Classes
.
size
()
==
0
)
if
(
aStack_Classes
.
empty
()
)
throw
X_Parser
(
X_Parser
::
x_UnspecifiedSyntaxError
,
""
,
String
::
Null_
(),
0
);
throw
X_Parser
(
X_Parser
::
x_UnspecifiedSyntaxError
,
""
,
String
::
Null_
(),
0
);
aStack_Classes
.
pop
();
aStack_Classes
.
pop
();
if
(
aStack_Classes
.
size
()
>
0
)
if
(
!
aStack_Classes
.
empty
()
)
SetOwner_2CurClass
();
SetOwner_2CurClass
();
else
else
SetOwner_2CurNamespace
();
SetOwner_2CurNamespace
();
...
@@ -307,7 +307,7 @@ S_OwnerStack::CloseEnum()
...
@@ -307,7 +307,7 @@ S_OwnerStack::CloseEnum()
{
{
csv_assert
(
pCurEnum
!=
0
);
csv_assert
(
pCurEnum
!=
0
);
pCurEnum
=
0
;
pCurEnum
=
0
;
if
(
aStack_Classes
.
size
()
>
0
)
if
(
!
aStack_Classes
.
empty
()
)
SetOwner_2CurClass
();
SetOwner_2CurClass
();
else
else
SetOwner_2CurNamespace
();
SetOwner_2CurNamespace
();
...
...
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