[Uml-devel] kdesdk/umbrello/umbrello/classparser
Oliver Kellogg
okellogg at users.sourceforge.net
Wed Dec 1 12:01:04 UTC 2004
CVS commit by okellogg:
m_anonTypeCnt: Superfluous, use m_anon.
M +7 -6 cpptree2uml.cpp 1.14
M +1 -1 cpptree2uml.h 1.6
--- kdesdk/umbrello/umbrello/classparser/cpptree2uml.cpp #1.13:1.14
@@ -1,4 +1,4 @@
/***************************************************************************
- * based on kdevelop/languages/cpp/store_walker.cpp, *
+ * Based on kdevelop/languages/cpp/store_walker.cpp, *
* Copyright (C) 2003 by Roberto Raggi *
* Copyright (C) 2004 by Oliver Kellogg <okellogg at users.sourceforge.net> *
@@ -25,5 +25,5 @@
CppTree2Uml::CppTree2Uml( const QString& fileName, ClassImport* store )
- : m_importer( store ), m_anon( 0 ), m_nsCnt( 0 ), m_clsCnt( 0 ), m_anonTypeCnt( 0 )
+ : m_importer( store ), m_anon( 0 ), m_nsCnt( 0 ), m_clsCnt( 0 )
{
m_fileName = URLUtil::canonicalPath(fileName);
@@ -287,5 +287,6 @@ void CppTree2Uml::parseClassSpecifier( C
if (className.isEmpty()) {
- className = "anon_" + QString::number(++m_anonTypeCnt);
+ className = "anon_" + QString::number(m_anon);
+ m_anon++;
}
UMLObject * o = m_importer->createUMLObject( Uml::ot_Class, className,
--- kdesdk/umbrello/umbrello/classparser/cpptree2uml.h #1.5:1.6
@@ -86,5 +86,5 @@ private:
int m_nsCnt; ///< stack top for m_currentNamespace
int m_clsCnt; ///< stack top for m_currentClass
- int m_anonTypeCnt;
+
private:
CppTree2Uml( const CppTree2Uml& source );
More information about the umbrello-devel
mailing list