activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1050743 - in /activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io: DataInputStream.cpp DataOutputStream.cpp
Date Sun, 19 Dec 2010 00:42:29 GMT
Author: tabish
Date: Sun Dec 19 00:42:29 2010
New Revision: 1050743

URL: http://svn.apache.org/viewvc?rev=1050743&view=rev
Log:
Fix a bunch of warnings that get shown with various versions of GCC especially if you turn
on -Weffc++

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataInputStream.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataOutputStream.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataInputStream.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataInputStream.cpp?rev=1050743&r1=1050742&r2=1050743&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataInputStream.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataInputStream.cpp Sun Dec
19 00:42:29 2010
@@ -35,7 +35,7 @@ using namespace decaf::lang::exceptions;
 
 ////////////////////////////////////////////////////////////////////////////////
 DataInputStream::DataInputStream( InputStream* inputStream, bool own )
- : FilterInputStream( inputStream, own ) {}
+ : FilterInputStream( inputStream, own ), buffer() {}
 
 ////////////////////////////////////////////////////////////////////////////////
 DataInputStream::~DataInputStream() {}

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataOutputStream.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataOutputStream.cpp?rev=1050743&r1=1050742&r2=1050743&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataOutputStream.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/DataOutputStream.cpp Sun Dec
19 00:42:29 2010
@@ -28,9 +28,7 @@ using namespace decaf::lang::exceptions;
 
 ////////////////////////////////////////////////////////////////////////////////
 DataOutputStream::DataOutputStream( OutputStream* outputStream, bool own )
- : FilterOutputStream( outputStream, own ) {
-    // Init the written count
-    written = 0;
+ : FilterOutputStream( outputStream, own ), written(0) {
 }
 
 ////////////////////////////////////////////////////////////////////////////////



Mime
View raw message