Kaydet (Commit) 0a993722 authored tarafından Jürgen Schmidt's avatar Jürgen Schmidt

#122853# replace slist size>0 with not empty

üst 51e177c8
...@@ -129,7 +129,7 @@ NameChain::Add_Segment( const char * i_sSeg ) ...@@ -129,7 +129,7 @@ NameChain::Add_Segment( const char * i_sSeg )
List_TplParameter & List_TplParameter &
NameChain::Templatize_LastSegment() NameChain::Templatize_LastSegment()
{ {
csv_assert( aSegments.size() > 0 ); csv_assert( ! aSegments.empty() );
return aSegments.back().AddTemplate(); return aSegments.back().AddTemplate();
} }
...@@ -158,7 +158,7 @@ NameChain::Compare( const NameChain & i_rChain ) const ...@@ -158,7 +158,7 @@ NameChain::Compare( const NameChain & i_rChain ) const
const String & const String &
NameChain::LastSegment() const NameChain::LastSegment() const
{ {
if ( aSegments.size() > 0 ) if ( ! aSegments.empty() )
return aSegments.back().Name(); return aSegments.back().Name();
return String::Null_(); return String::Null_();
} }
......
...@@ -53,7 +53,7 @@ EasyWriter::Finish_OutputNode() ...@@ -53,7 +53,7 @@ EasyWriter::Finish_OutputNode()
csi::xml::Element & csi::xml::Element &
EasyWriter::Out() EasyWriter::Out()
{ {
csv_assert( aCurDestination.size() > 0); csv_assert( ! aCurDestination.empty() );
return *aCurDestination.top(); return *aCurDestination.top();
} }
...@@ -57,7 +57,7 @@ class OutputStack ...@@ -57,7 +57,7 @@ class OutputStack
inline csi::xml::Element & inline csi::xml::Element &
OutputStack::Out() const OutputStack::Out() const
{ {
csv_assert( aCurDestination.size() > 0 ); csv_assert( ! aCurDestination.empty() );
return *aCurDestination.top(); return *aCurDestination.top();
} }
......
...@@ -113,7 +113,7 @@ inline ary::cpp::Namespace & ...@@ -113,7 +113,7 @@ inline ary::cpp::Namespace &
ContextForAry:: ContextForAry::
S_OwnerStack::CurNamespace() const S_OwnerStack::CurNamespace() const
{ {
csv_assert( aStack_Namespaces.size() > 0 ); csv_assert( ! aStack_Namespaces.empty() );
return *aStack_Namespaces.top(); return *aStack_Namespaces.top();
} }
...@@ -204,7 +204,7 @@ inline void ...@@ -204,7 +204,7 @@ inline void
ContextForAry:: ContextForAry::
S_OwnerStack::SetCurProtection( ary::cpp::E_Protection i_eProtection ) S_OwnerStack::SetCurProtection( ary::cpp::E_Protection i_eProtection )
{ {
csv_assert( aStack_Classes.size() > 0 ); csv_assert( ! aStack_Classes.empty() );
aStack_Classes.top().second = i_eProtection; aStack_Classes.top().second = i_eProtection;
} }
......
...@@ -129,7 +129,7 @@ if (DEBUG_ShowTokens()) ...@@ -129,7 +129,7 @@ if (DEBUG_ShowTokens())
UnoIDL_PE & UnoIDL_PE &
TokenDistributor::ProcessingData::CurEnvironment() const TokenDistributor::ProcessingData::CurEnvironment() const
{ {
csv_assert(aEnvironments.size() > 0); csv_assert(!aEnvironments.empty());
csv_assert(aEnvironments.back().first != 0); csv_assert(aEnvironments.back().first != 0);
return *aEnvironments.back().first; return *aEnvironments.back().first;
......
...@@ -83,7 +83,7 @@ PE_Exception::TransferData() ...@@ -83,7 +83,7 @@ PE_Exception::TransferData()
{ {
if (NOT Work().bIsPreDeclaration) if (NOT Work().bIsPreDeclaration)
{ {
csv_assert(Work().sData_Name.size() > 0); csv_assert(! Work().sData_Name.empty());
csv_assert(Work().nCurStruct.IsValid()); csv_assert(Work().nCurStruct.IsValid());
} }
Stati().pCurStatus = &Stati().aNone; Stati().pCurStatus = &Stati().aNone;
......
...@@ -395,7 +395,7 @@ PE_Interface::TransferData() ...@@ -395,7 +395,7 @@ PE_Interface::TransferData()
{ {
if (NOT bIsPreDeclaration) if (NOT bIsPreDeclaration)
{ {
csv_assert(sData_Name.size() > 0); csv_assert(!sData_Name.empty());
csv_assert(nCurInterface.IsValid()); csv_assert(nCurInterface.IsValid());
} }
else else
......
...@@ -304,7 +304,7 @@ PE_Service::TransferData() ...@@ -304,7 +304,7 @@ PE_Service::TransferData()
{ {
if (NOT bIsPreDeclaration) if (NOT bIsPreDeclaration)
{ {
csv_assert(sData_Name.size() > 0); csv_assert(! sData_Name.empty());
csv_assert( (pCurService != 0) != (pCurSiService != 0) ); csv_assert( (pCurService != 0) != (pCurSiService != 0) );
} }
......
...@@ -225,7 +225,7 @@ PE_Singleton::TransferData() ...@@ -225,7 +225,7 @@ PE_Singleton::TransferData()
{ {
if (NOT bIsPreDeclaration) if (NOT bIsPreDeclaration)
{ {
csv_assert(sData_Name.size() > 0); csv_assert(! sData_Name.empty());
csv_assert( (pCurSingleton != 0) != (pCurSiSingleton != 0) ); csv_assert( (pCurSingleton != 0) != (pCurSiSingleton != 0) );
} }
......
...@@ -82,7 +82,7 @@ PE_Struct::TransferData() ...@@ -82,7 +82,7 @@ PE_Struct::TransferData()
{ {
if (NOT Work().bIsPreDeclaration) if (NOT Work().bIsPreDeclaration)
{ {
csv_assert(Work().sData_Name.size() > 0); csv_assert(! Work().sData_Name.empty());
csv_assert(Work().nCurStruct.IsValid()); csv_assert(Work().nCurStruct.IsValid());
} }
Stati().pCurStatus = &Stati().aNone; Stati().pCurStatus = &Stati().aNone;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment