Author: sebor
Date: Sat Sep  6 15:42:30 2008
New Revision: 692757

URL: http://svn.apache.org/viewvc?rev=692757&view=rev
Log:
2008-09-06  Martin Sebor  <[EMAIL PROTECTED]>

        STDCXX-1007
        * examples/manual/search.cpp (main): Silenced HP aCC warning #4320:
        performance advice: std::endl is expensive because it flushes the
        stream.

Modified:
    stdcxx/branches/4.2.x/examples/manual/search.cpp

Modified: stdcxx/branches/4.2.x/examples/manual/search.cpp
URL: 
http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/examples/manual/search.cpp?rev=692757&r1=692756&r2=692757&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/examples/manual/search.cpp (original)
+++ stdcxx/branches/4.2.x/examples/manual/search.cpp Sat Sep  6 15:42:30 2008
@@ -22,7 +22,7 @@
  * implied.   See  the License  for  the  specific language  governing
  * permissions and limitations under the License.
  *
- * Copyright 1994-2006 Rogue Wave Software.
+ * Copyright 1994-2006 Rogue Wave Software, Inc.
  * 
  **************************************************************************/
 
@@ -46,8 +46,8 @@
   //
   // Print out the original sequence.
   //
-  cout << endl << "The subsequence, " << subseq << ", was found at the ";
-  cout << endl << "location identified by a '*'" << endl << "     ";
+  cout << "\nThe subsequence, " << subseq << ", was found at the ";
+  cout << "\nlocation identified by a '*'" << "\n     ";
   //
   // Create an iterator to identify the location of 
   // subsequence within sequence.
@@ -65,9 +65,10 @@
   //
   // Output sequence to display result.
   //
-  for (list<char,allocator<char> >::iterator i = sequence.begin(); i != 
sequence.end(); i++)
+  for (list<char,allocator<char> >::iterator i = sequence.begin();
+       i != sequence.end(); ++i)
     cout << *i;
-  cout << endl;
+  cout << '\n';
 
   return 0;
 }


Reply via email to