Version: 1.5.4 (using KDE 3.5.4, Gentoo) Compiler: Target: x86_64-pc-linux-gnu OS: Linux (x86_64) release 2.6.16-gentoo-r7 Creating a class Foo_Bar and generating code creates files Foo_Bar.cpp and Foo_Bar.h, but in Foo_Bar.cpp we get a line: #include "foo_bar.h" instead of: #include "Foo_Bar.h"
SVN commit 586105 by okellogg: Remove .lower() on generated #include files. BUG:134279 M +1 -0 ChangeLog M +2 -2 umbrello/codegenerators/cppwriter.cpp --- branches/KDE/3.5/kdesdk/umbrello/ChangeLog #586104:586105 @@ -17,6 +17,7 @@ * Java import - "final" and comments in method declaration not parsed correctly (132174) * Java import: spaces in strings cause next member var to be ignored (132472) * Java import - static member vars ignored in interfaces (132657) +* Header file names are lowercase in .cpp file, but mixed case on the disk (134279) Version 1.5.4 --- branches/KDE/3.5/kdesdk/umbrello/umbrello/codegenerators/cppwriter.cpp #586104:586105 @@ -227,7 +227,7 @@ // Q: Why all utils? Isnt just List and Vector the only classes we are using? // Our import *should* also look at operations, and check that objects being // used arent in another package (and thus need to be explicitly imported here). - cpp << "#include \"" << (m_classifierInfo->className).lower() << ".h\"" << m_endl; + cpp << "#include \"" << m_classifierInfo->className << ".h\"" << m_endl; writeBlankLine(cpp); if (c->getVisibility() == Uml::Visibility::Implementation) { @@ -1231,7 +1231,7 @@ if( !isFirstClass && !a->getRoleName(Uml::A).isEmpty() && !a->getRoleName(Uml::B).isEmpty()) stream << "class " << current->getName() << ";" << m_endl; // special case: use forward declaration else - stream << "#include \"" << current->getName().lower() << ".h\"" << m_endl; // just the include statement + stream << "#include \"" << current->getName() << ".h\"" << m_endl; // just the include statement } }