basic_ios.tcc (basic_ios<>::copyfmt): Don't deal with _M_word != _M_local_word two...
authorPaolo Carlini <pcarlini@suse.de>
Sat, 21 Aug 2004 08:54:07 +0000 (08:54 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 21 Aug 2004 08:54:07 +0000 (08:54 +0000)
2004-08-21  Paolo Carlini  <pcarlini@suse.de>

* include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
with _M_word != _M_local_word two times, redundantly.

From-SVN: r86359

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/basic_ios.tcc

index 6d7bba14f9629d99c51debd510092bb5bb1f6099..44f5ccb1ad653f7d6cf1f38fe3fc9471aed82b19 100644 (file)
@@ -1,3 +1,8 @@
+2004-08-21  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
+       with _M_word != _M_local_word two times, redundantly.
+
 2004-08-20  Jason Merrill  <jason@redhat.com>
 
        * include/Makefile.am (${host_builddir}/gthr.h): Don't add
index fcb4b02493f6a47acb3c20a65c05f4dc0c47825f..d6b465f0b0883d31251b279d189295c99e779ebc 100644 (file)
@@ -1,6 +1,6 @@
 // basic_ios member functions -*- C++ -*-
 
-// Copyright (C) 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
+// Copyright (C) 1999, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -87,11 +87,6 @@ namespace std
          _M_callbacks = __cb;
          for (int __i = 0; __i < __rhs._M_word_size; ++__i)
            __words[__i] = __rhs._M_word[__i];
-         if (_M_word != _M_local_word)
-           {
-             delete [] _M_word;
-             _M_word = 0;
-           }
          _M_word = __words;
          _M_word_size = __rhs._M_word_size;