[cpp-xmltooling] branch master updated: Can't use auto in C++11

Scott Cantor cantor.2 at osu.edu
Fri Jun 24 14:10:32 EDT 2016


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch master
in repository cpp-xmltooling.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-xmltooling.git;a=commit;h=229a957a82d51d2f91db40237f3b274554f68098

The following commit(s) were added to refs/heads/master by this push:
       new  229a957   Can't use auto in C++11
229a957 is described below

commit 229a957a82d51d2f91db40237f3b274554f68098
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Fri Jun 24 14:10:47 2016 -0400

    Can't use auto in C++11
---
 xmltooling/util/CloneInputStream.cpp | 2 +-
 xmltooling/util/CloneInputStream.h   | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/xmltooling/util/CloneInputStream.cpp b/xmltooling/util/CloneInputStream.cpp
index b3da2fc..fa83f61 100644
--- a/xmltooling/util/CloneInputStream.cpp
+++ b/xmltooling/util/CloneInputStream.cpp
@@ -53,7 +53,7 @@ CloneInputStream::~CloneInputStream()
 
 XMLSize_t CloneInputStream::readBytes(XMLByte* const toFill, const XMLSize_t maxToRead)
 {
-    auto bytesRead = m_input->readBytes(toFill, maxToRead);
+    XMLSize_t bytesRead = m_input->readBytes(toFill, maxToRead);
 
     if (bytesRead) m_backingStream.write((char*)toFill, bytesRead);
 
diff --git a/xmltooling/util/CloneInputStream.h b/xmltooling/util/CloneInputStream.h
index b12ab89..8c5d3d7 100644
--- a/xmltooling/util/CloneInputStream.h
+++ b/xmltooling/util/CloneInputStream.h
@@ -55,9 +55,9 @@ namespace xmltooling {
 
 
     private :
-        std::ofstream            m_backingStream;
-        logging::Category&       m_log;
-	    xercesc::BinInputStream* m_input;
+        logging::Category& m_log;
+	xercesc::BinInputStream* m_input;
+        std::ofstream m_backingStream;
     };
 };
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list