openoffice-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1544060 - in /openoffice/trunk/main/autodoc/source: ary/cpp/ display/html/ display/inc/toolkit/ parser/cpp/ parser_i/idl/
Date Thu, 21 Nov 2013 08:11:47 GMT
Author: jsc
Date: Thu Nov 21 08:11:47 2013
New Revision: 1544060

URL: http://svn.apache.org/r1544060
Log:
#122853# replace slist size>0 with not empty

Modified:
    openoffice/trunk/main/autodoc/source/ary/cpp/namechain.cxx
    openoffice/trunk/main/autodoc/source/display/html/easywri.cxx
    openoffice/trunk/main/autodoc/source/display/inc/toolkit/outputstack.hxx
    openoffice/trunk/main/autodoc/source/parser/cpp/sownstck.hxx
    openoffice/trunk/main/autodoc/source/parser_i/idl/distrib.cxx
    openoffice/trunk/main/autodoc/source/parser_i/idl/pe_excp.cxx
    openoffice/trunk/main/autodoc/source/parser_i/idl/pe_iface.cxx
    openoffice/trunk/main/autodoc/source/parser_i/idl/pe_servi.cxx
    openoffice/trunk/main/autodoc/source/parser_i/idl/pe_singl.cxx
    openoffice/trunk/main/autodoc/source/parser_i/idl/pe_struc.cxx

Modified: openoffice/trunk/main/autodoc/source/ary/cpp/namechain.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/autodoc/source/ary/cpp/namechain.cxx?rev=1544060&r1=1544059&r2=1544060&view=diff
==============================================================================
--- openoffice/trunk/main/autodoc/source/ary/cpp/namechain.cxx (original)
+++ openoffice/trunk/main/autodoc/source/ary/cpp/namechain.cxx Thu Nov 21 08:11:47 2013
@@ -129,7 +129,7 @@ NameChain::Add_Segment( const char * i_s
 List_TplParameter &
 NameChain::Templatize_LastSegment()
 {
-	csv_assert( aSegments.size() > 0 );
+	csv_assert( ! aSegments.empty() );
 
 	return aSegments.back().AddTemplate();
 }
@@ -158,7 +158,7 @@ NameChain::Compare( const NameChain & i_
 const String  &
 NameChain::LastSegment() const
 {
-	if ( aSegments.size() > 0 )
+	if ( ! aSegments.empty() )
 		return aSegments.back().Name();
 	return String::Null_();
 }

Modified: openoffice/trunk/main/autodoc/source/display/html/easywri.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/autodoc/source/display/html/easywri.cxx?rev=1544060&r1=1544059&r2=1544060&view=diff
==============================================================================
--- openoffice/trunk/main/autodoc/source/display/html/easywri.cxx (original)
+++ openoffice/trunk/main/autodoc/source/display/html/easywri.cxx Thu Nov 21 08:11:47 2013
@@ -53,7 +53,7 @@ EasyWriter::Finish_OutputNode()
 csi::xml::Element &
 EasyWriter::Out()
 {
-    csv_assert( aCurDestination.size() > 0);
+    csv_assert( ! aCurDestination.empty() );
     return *aCurDestination.top();
 }
 

Modified: openoffice/trunk/main/autodoc/source/display/inc/toolkit/outputstack.hxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/autodoc/source/display/inc/toolkit/outputstack.hxx?rev=1544060&r1=1544059&r2=1544060&view=diff
==============================================================================
--- openoffice/trunk/main/autodoc/source/display/inc/toolkit/outputstack.hxx (original)
+++ openoffice/trunk/main/autodoc/source/display/inc/toolkit/outputstack.hxx Thu Nov 21 08:11:47
2013
@@ -57,7 +57,7 @@ class OutputStack
 inline csi::xml::Element &
 OutputStack::Out() const
 {
-    csv_assert( aCurDestination.size() > 0 );
+    csv_assert( ! aCurDestination.empty() );
     return *aCurDestination.top();
 }
 

Modified: openoffice/trunk/main/autodoc/source/parser/cpp/sownstck.hxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/autodoc/source/parser/cpp/sownstck.hxx?rev=1544060&r1=1544059&r2=1544060&view=diff
==============================================================================
--- openoffice/trunk/main/autodoc/source/parser/cpp/sownstck.hxx (original)
+++ openoffice/trunk/main/autodoc/source/parser/cpp/sownstck.hxx Thu Nov 21 08:11:47 2013
@@ -113,7 +113,7 @@ inline ary::cpp::Namespace &
 ContextForAry::
 S_OwnerStack::CurNamespace() const
 {
-    csv_assert( aStack_Namespaces.size() > 0 );
+    csv_assert( ! aStack_Namespaces.empty() );
     return *aStack_Namespaces.top();
 }
 
@@ -204,7 +204,7 @@ inline void
 ContextForAry::
 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;
 }
 

Modified: openoffice/trunk/main/autodoc/source/parser_i/idl/distrib.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/autodoc/source/parser_i/idl/distrib.cxx?rev=1544060&r1=1544059&r2=1544060&view=diff
==============================================================================
--- openoffice/trunk/main/autodoc/source/parser_i/idl/distrib.cxx (original)
+++ openoffice/trunk/main/autodoc/source/parser_i/idl/distrib.cxx Thu Nov 21 08:11:47 2013
@@ -129,7 +129,7 @@ if (DEBUG_ShowTokens())
 UnoIDL_PE &
 TokenDistributor::ProcessingData::CurEnvironment() const
 {
-	csv_assert(aEnvironments.size() > 0);
+	csv_assert(!aEnvironments.empty());
 	csv_assert(aEnvironments.back().first != 0);
 
 	return *aEnvironments.back().first;

Modified: openoffice/trunk/main/autodoc/source/parser_i/idl/pe_excp.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/autodoc/source/parser_i/idl/pe_excp.cxx?rev=1544060&r1=1544059&r2=1544060&view=diff
==============================================================================
--- openoffice/trunk/main/autodoc/source/parser_i/idl/pe_excp.cxx (original)
+++ openoffice/trunk/main/autodoc/source/parser_i/idl/pe_excp.cxx Thu Nov 21 08:11:47 2013
@@ -83,7 +83,7 @@ PE_Exception::TransferData()
 {
 	if (NOT Work().bIsPreDeclaration)
 	{
-		csv_assert(Work().sData_Name.size() > 0);
+		csv_assert(! Work().sData_Name.empty());
 		csv_assert(Work().nCurStruct.IsValid());
 	}
 	Stati().pCurStatus = &Stati().aNone;

Modified: openoffice/trunk/main/autodoc/source/parser_i/idl/pe_iface.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/autodoc/source/parser_i/idl/pe_iface.cxx?rev=1544060&r1=1544059&r2=1544060&view=diff
==============================================================================
--- openoffice/trunk/main/autodoc/source/parser_i/idl/pe_iface.cxx (original)
+++ openoffice/trunk/main/autodoc/source/parser_i/idl/pe_iface.cxx Thu Nov 21 08:11:47 2013
@@ -395,7 +395,7 @@ PE_Interface::TransferData()
 {
 	if (NOT bIsPreDeclaration)
 	{
-		csv_assert(sData_Name.size() > 0);
+		csv_assert(!sData_Name.empty());
 		csv_assert(nCurInterface.IsValid());
 	}
 	else

Modified: openoffice/trunk/main/autodoc/source/parser_i/idl/pe_servi.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/autodoc/source/parser_i/idl/pe_servi.cxx?rev=1544060&r1=1544059&r2=1544060&view=diff
==============================================================================
--- openoffice/trunk/main/autodoc/source/parser_i/idl/pe_servi.cxx (original)
+++ openoffice/trunk/main/autodoc/source/parser_i/idl/pe_servi.cxx Thu Nov 21 08:11:47 2013
@@ -304,7 +304,7 @@ PE_Service::TransferData()
 {
 	if (NOT bIsPreDeclaration)
 	{
-		csv_assert(sData_Name.size() > 0);
+		csv_assert(! sData_Name.empty());
 		csv_assert( (pCurService != 0) != (pCurSiService != 0) );
 	}
 

Modified: openoffice/trunk/main/autodoc/source/parser_i/idl/pe_singl.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/autodoc/source/parser_i/idl/pe_singl.cxx?rev=1544060&r1=1544059&r2=1544060&view=diff
==============================================================================
--- openoffice/trunk/main/autodoc/source/parser_i/idl/pe_singl.cxx (original)
+++ openoffice/trunk/main/autodoc/source/parser_i/idl/pe_singl.cxx Thu Nov 21 08:11:47 2013
@@ -225,7 +225,7 @@ PE_Singleton::TransferData()
 {
 	if (NOT bIsPreDeclaration)
 	{
-		csv_assert(sData_Name.size() > 0);
+		csv_assert(! sData_Name.empty());
 		csv_assert( (pCurSingleton != 0) != (pCurSiSingleton != 0) );
 	}
 

Modified: openoffice/trunk/main/autodoc/source/parser_i/idl/pe_struc.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/autodoc/source/parser_i/idl/pe_struc.cxx?rev=1544060&r1=1544059&r2=1544060&view=diff
==============================================================================
--- openoffice/trunk/main/autodoc/source/parser_i/idl/pe_struc.cxx (original)
+++ openoffice/trunk/main/autodoc/source/parser_i/idl/pe_struc.cxx Thu Nov 21 08:11:47 2013
@@ -82,7 +82,7 @@ PE_Struct::TransferData()
 {
     if (NOT Work().bIsPreDeclaration)
     {
-        csv_assert(Work().sData_Name.size() > 0);
+        csv_assert(! Work().sData_Name.empty());
         csv_assert(Work().nCurStruct.IsValid());
     }
     Stati().pCurStatus = &Stati().aNone;



Mime
View raw message