OSDN Git Service

2002-11-25 Wolfgang Bangerth <bangerth@ticam.utexas.edu>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Nov 2002 19:01:55 +0000 (19:01 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Nov 2002 19:01:55 +0000 (19:01 +0000)
* include/std/std_complex.h
(operator<<(basic_ostream&, const complex&)): Prefer 'x'
to "x" for efficiency sake.
* src/locale.cc (locale::locale(const char*)): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59465 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/std_complex.h
libstdc++-v3/src/locale.cc

index d84114e..f060b28 100644 (file)
@@ -1,3 +1,10 @@
+2002-11-25  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
+
+       * include/std/std_complex.h
+       (operator<<(basic_ostream&, const complex&)): Prefer 'x'
+       to "x" for efficiency sake.
+       * src/locale.cc (locale::locale(const char*)): Ditto.
+
 2002-11-24  Paolo Carlini  <pcarlini@unitus.it>
 
        * src/locale.cc (locale::locale(const char*)):
index bcfcedd..f297296 100644 (file)
@@ -390,7 +390,7 @@ namespace std
       __s.flags(__os.flags());
       __s.imbue(__os.getloc());
       __s.precision(__os.precision());
-      __s << '(' << __x.real() << "," << __x.imag() << ')';
+      __s << '(' << __x.real() << ',' << __x.imag() << ')';
       return __os << __s.str();
     }
 
index dfb2feb..c5c6dd8 100644 (file)
@@ -235,14 +235,14 @@ namespace std
                    for (size_t __j = 0; __j < __i; ++__j)
                      {
                        __str += _S_categories[__j];
-                       __str += "=";
+                       __str += '=';
                        __str += __res;
-                       __str += ";";
+                       __str += ';';
                      }
                    __str += _S_categories[__i];
-                   __str += "=";
+                   __str += '=';
                    __str += __env;
-                   __str += ";";
+                   __str += ';';
                    __i++;
                    for (; __i < _S_categories_size
                           + _S_extra_categories_size; ++__i)
@@ -251,9 +251,9 @@ namespace std
                        if (!__env || strcmp(__env, "") == 0)
                          {
                            __str += _S_categories[__i];
-                           __str += "=";
+                           __str += '=';
                            __str += __res;
-                           __str += ";";
+                           __str += ';';
                          }
                        else if (strcmp(__env, "C") == 0
                                 || strcmp(__env, "POSIX") == 0)
@@ -264,9 +264,9 @@ namespace std
                        else
                          {
                            __str += _S_categories[__i];
-                           __str += "=";
+                           __str += '=';
                            __str += __env;
-                           __str += ";";
+                           __str += ';';
                          }
                      }
                    __str.erase(__str.end() - 1);
@@ -347,15 +347,15 @@ namespace std
     else
       {
        __ret += _S_categories[0];
-       __ret += "=";
+       __ret += '=';
        __ret += _M_impl->_M_names[0]; 
        for (size_t __i = 1; 
             __i < _S_categories_size + _S_extra_categories_size; 
             ++__i)
          {
-           __ret += ";";
+           __ret += ';';
            __ret += _S_categories[__i];
-           __ret += "=";
+           __ret += '=';
            __ret += _M_impl->_M_names[__i];
          }
       }