]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Do as much as the Standard of C++ allows.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 17 Oct 2002 22:04:26 +0000 (22:04 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 17 Oct 2002 22:04:26 +0000 (22:04 +0000)
git-svn-id: https://svn.dealii.org/trunk@6688 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/parameter_handler.cc

index 0c5db04b5875f8338da827fe65e1e39d0850cbf7..59e8b757db088e68a3f2e18b738a3d0c27e0cfd5 100644 (file)
@@ -11,9 +11,6 @@
 //
 //----------------------------  parameter_handler.cc  ---------------------------
 
-
-//TODO:[WB] (compiler) replace s.c_str() by s when that is possible
-
 #include <base/parameter_handler.h>
 #include <base/logstream.h>
 #include <base/memory_consumption.h>
@@ -85,7 +82,7 @@ namespace Patterns
   bool Integer::match (const std::string &test_string) const
   {
 #ifdef HAVE_STD_STRINGSTREAM
-    std::istringstream str(test_string.c_str());
+    std::istringstream str(test_string);
 #else
     std::istrstream str(test_string.c_str());
 #endif
@@ -170,7 +167,7 @@ namespace Patterns
   bool Double::match (const std::string &test_string) const
   {
 #ifdef HAVE_STD_STRINGSTREAM
-    std::istringstream str(test_string.c_str());
+    std::istringstream str(test_string);
 #else
     std::istrstream str(test_string.c_str());
 #endif

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.