diff options
| author | Baptiste Lepilleur <gaiacrtn@free.fr> | 2002-06-14 10:12:17 +0000 |
|---|---|---|
| committer | Baptiste Lepilleur <gaiacrtn@free.fr> | 2002-06-14 10:12:17 +0000 |
| commit | f39e160fba25476de7d41e2f19d756db7ee76dc7 (patch) | |
| tree | 6abf2725b94c754023bc8408ad0e53463bc7caed /src/cppunit | |
| parent | 6b57ee7236610cc5ac9e388bb73be1854429a27b (diff) | |
| download | cppunit-f39e160fba25476de7d41e2f19d756db7ee76dc7.tar.gz | |
Src/cppunit/TypeInfoHelper.
src/cppunit/TypeInfoHelper.cpp: added work around for bug #565481.
gcc 3.0 RTTI name() returns the type prefixed with a number (the
length of the type). The work around strip the number.
* src/msvc6/testpluginrunner/TestPlugInRunnerApp.cpp: registry key is now
set. Allow to save settings.
* src/msvc6/testpluginrunner/TestPlugInRunnerDlg.h:
* src/msvc6/testpluginrunner/TestPlugInRunnerDlg.cpp: added layout
initialization for resizing.
* src/msvc6/testpluginrunner/TestPlugRunner.rc:
* src/msvc6/testpluginrunner/TestPlugInRunner.dsp: added TestRunner
project files. Somehow I can't get cdxCDynamicDialog to compile
as a MFC extension. Included all sources files and resources
as a very dirt work around.
* src/msvc6/testrunner/TestRunnerDlg.h:
* src/msvc6/testrunner/TestRunnerDlg.cpp:
* src/msvc6/testrunner/TestRunnerModel.h: those classes are no longer
exported in the MFC extension. See TestPlugInRunner issue with
cdxCDynamicDialog.
* include/cppunit/Message.h:
* include/cppunit/TestPath.h:
* include/cppunit/TestResult.h:
* include/cppunit/TestResultCollector.h:
* include/cppunit/TestSuite.h:
* include/cppunit/TestFactoryRegistry.h:
* include/cppunit/XmlElement.h:
* include/cppunit/TypeInfoHelper.h: commented out STL template export
in DLL. This caused conflicts when instantiting the same template in
a user project.
Diffstat (limited to 'src/cppunit')
| -rw-r--r-- | src/cppunit/TypeInfoHelper.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cppunit/TypeInfoHelper.cpp b/src/cppunit/TypeInfoHelper.cpp index c521e84..43709c3 100644 --- a/src/cppunit/TypeInfoHelper.cpp +++ b/src/cppunit/TypeInfoHelper.cpp @@ -14,6 +14,14 @@ TypeInfoHelper::getClassName( const std::type_info &info ) static std::string classPrefix( "class " ); std::string name( info.name() ); + // Work around gcc 3.0 bug: strip number before type name. + int firstNotDigitIndex = 0; + while ( firstNotDigitIndex < name.length() && + name[firstNotDigitIndex] >= '0' && + name[firstNotDigitIndex] <= '9' ) + ++firstNotDigitIndex; + name = name.substr( firstNotDigitIndex ); + if ( name.substr( 0, classPrefix.length() ) == classPrefix ) return name.substr( classPrefix.length() ); return name; |
