[Rprotobuf-commits] r634 - pkg/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Dec 30 21:27:29 CET 2013


Author: murray
Date: 2013-12-30 21:27:29 +0100 (Mon, 30 Dec 2013)
New Revision: 634

Modified:
   pkg/src/ZeroCopyInputStreamWrapper.cpp
   pkg/src/ZeroCopyOutputStreamWrapper.cpp
Log:
whitespace change only.  clang-format

* Don't indent one level for everything inside of a namespace { }
* Use 4 character indent consistently.



Modified: pkg/src/ZeroCopyInputStreamWrapper.cpp
===================================================================
--- pkg/src/ZeroCopyInputStreamWrapper.cpp	2013-12-30 18:22:34 UTC (rev 633)
+++ pkg/src/ZeroCopyInputStreamWrapper.cpp	2013-12-30 20:27:29 UTC (rev 634)
@@ -1,24 +1,25 @@
 #include "rprotobuf.h"
 
-namespace rprotobuf{
-	
-	ZeroCopyInputStreamWrapper::ZeroCopyInputStreamWrapper( GPB::io::ZeroCopyInputStream* stream ) : stream(stream){
-		coded_stream = new GPB::io::CodedInputStream(stream);
-	}
-	
-	ZeroCopyInputStreamWrapper::~ZeroCopyInputStreamWrapper(){
-		/* first clear the coded stream */
-		delete coded_stream ;
-		
-		/* then the stream itself */
-		delete stream ; 
-	}
-	GPB::io::ZeroCopyInputStream* ZeroCopyInputStreamWrapper::get_stream(){
-		return stream ;
-	}
-	GPB::io::CodedInputStream* ZeroCopyInputStreamWrapper::get_coded_stream(){
-		return coded_stream ;
-	}
+namespace rprotobuf {
 
-} // namespace rprotobuf
+ZeroCopyInputStreamWrapper::ZeroCopyInputStreamWrapper(
+    GPB::io::ZeroCopyInputStream* stream)
+    : stream(stream) {
+    coded_stream = new GPB::io::CodedInputStream(stream);
+}
 
+ZeroCopyInputStreamWrapper::~ZeroCopyInputStreamWrapper() {
+    /* first clear the coded stream */
+    delete coded_stream;
+
+    /* then the stream itself */
+    delete stream;
+}
+GPB::io::ZeroCopyInputStream* ZeroCopyInputStreamWrapper::get_stream() {
+    return stream;
+}
+GPB::io::CodedInputStream* ZeroCopyInputStreamWrapper::get_coded_stream() {
+    return coded_stream;
+}
+
+}  // namespace rprotobuf

Modified: pkg/src/ZeroCopyOutputStreamWrapper.cpp
===================================================================
--- pkg/src/ZeroCopyOutputStreamWrapper.cpp	2013-12-30 18:22:34 UTC (rev 633)
+++ pkg/src/ZeroCopyOutputStreamWrapper.cpp	2013-12-30 20:27:29 UTC (rev 634)
@@ -1,24 +1,25 @@
 #include "rprotobuf.h"
 
-namespace rprotobuf{
-	
-	ZeroCopyOutputStreamWrapper::ZeroCopyOutputStreamWrapper( GPB::io::ZeroCopyOutputStream* stream ) : stream(stream){
-		coded_stream = new GPB::io::CodedOutputStream(stream);
-	}
-	
-	ZeroCopyOutputStreamWrapper::~ZeroCopyOutputStreamWrapper(){
-		/* first clear the coded stream */
-		delete coded_stream ;
-		
-		/* then the stream itself */
-		delete stream ; 
-	}
-	GPB::io::ZeroCopyOutputStream* ZeroCopyOutputStreamWrapper::get_stream(){
-		return stream ;
-	}
-	GPB::io::CodedOutputStream* ZeroCopyOutputStreamWrapper::get_coded_stream(){
-		return coded_stream ;
-	}
+namespace rprotobuf {
 
-} // namespace rprotobuf
+ZeroCopyOutputStreamWrapper::ZeroCopyOutputStreamWrapper(
+    GPB::io::ZeroCopyOutputStream* stream)
+    : stream(stream) {
+    coded_stream = new GPB::io::CodedOutputStream(stream);
+}
 
+ZeroCopyOutputStreamWrapper::~ZeroCopyOutputStreamWrapper() {
+    /* first clear the coded stream */
+    delete coded_stream;
+
+    /* then the stream itself */
+    delete stream;
+}
+GPB::io::ZeroCopyOutputStream* ZeroCopyOutputStreamWrapper::get_stream() {
+    return stream;
+}
+GPB::io::CodedOutputStream* ZeroCopyOutputStreamWrapper::get_coded_stream() {
+    return coded_stream;
+}
+
+}  // namespace rprotobuf



More information about the Rprotobuf-commits mailing list