[ismrmrd] 135/281: Changed interface to the writeHeader function to make the input string a const.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Jan 14 20:01:06 UTC 2015


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

ghisvail-guest pushed a commit to annotated tag ismrmrd0.5
in repository ismrmrd.

commit 9ba431c7ee48bdf41556dee068f7e7c53148feca
Author: Souheil Inati <souheil.inati at nih.gov>
Date:   Wed Apr 10 09:46:14 2013 -0400

    Changed interface to the writeHeader function to make the input string a const.
---
 ismrmrd_hdf5.cpp | 2 +-
 ismrmrd_hdf5.h   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ismrmrd_hdf5.cpp b/ismrmrd_hdf5.cpp
index d675516..4786218 100644
--- a/ismrmrd_hdf5.cpp
+++ b/ismrmrd_hdf5.cpp
@@ -468,7 +468,7 @@ boost::shared_ptr< Acquisition > IsmrmrdDataset::readAcquisition(unsigned long i
 
 }
 
-int IsmrmrdDataset::writeHeader(std::string& xml) {
+int IsmrmrdDataset::writeHeader(const std::string& xml) {
 	std::vector<hsize_t> dims(1,1);
 	std::vector<hsize_t> max_dims(1,1);
 
diff --git a/ismrmrd_hdf5.h b/ismrmrd_hdf5.h
index 24ba78a..538eaba 100644
--- a/ismrmrd_hdf5.h
+++ b/ismrmrd_hdf5.h
@@ -110,7 +110,7 @@ public:
 	 *  @warning There is no check of whether the string is a valid XML document at this point.
 	 *
 	 */
-	int writeHeader(std::string& xml);
+	int writeHeader(const std::string& xml);
 
 	/**
 	 *  Reads the XML configuration header from the data set.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/ismrmrd.git



More information about the debian-science-commits mailing list