From 97f6783f802fc0dd099543192a5f29eedc944ab4 Mon Sep 17 00:00:00 2001 From: Matt Swain Date: Tue, 19 Jan 2016 14:06:45 +0000 Subject: [PATCH] Fix ConformerParser to use const std::string & In #627, `readAmberTrajectory` in ConformerParser.h is updated to use `const std::string &`. This updates the corresponding method in ConformerParser.cpp to match. I needed to do this to compile RDKit with contrib. --- Contrib/ConformerParser/ConformerParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Contrib/ConformerParser/ConformerParser.cpp b/Contrib/ConformerParser/ConformerParser.cpp index 494d10d64..eaf5da95d 100644 --- a/Contrib/ConformerParser/ConformerParser.cpp +++ b/Contrib/ConformerParser/ConformerParser.cpp @@ -69,7 +69,7 @@ namespace RDKit{ return confIds; } - void readAmberTrajectory(std::string fName, std::vector > &coords, + void readAmberTrajectory(const std::string &fName, std::vector > &coords, unsigned int numAtoms) { std::ifstream inStream(fName.c_str()); if (!inStream || (inStream.bad()) ) {