changed const string to const string & in load

release/4.3a0
Manohar Paluri 2009-08-30 21:49:48 +00:00
parent adabafa9f0
commit 00fd3cebcf
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ namespace gtsam {
using namespace std;
/* ************************************************************************* */
void Cal3_S2::load(const std::string path) {
void Cal3_S2::load(const std::string &path) {
char buffer[200];
buffer[0] = 0;
sprintf(buffer, "%s/calibration_info.txt", path.c_str());

View File

@ -41,7 +41,7 @@ namespace gtsam {
/**
* load calibration from location (default name is calibration_info.txt)
*/
void load(const std::string path);
void load(const std::string &path);
/**
* Given 5-dim tangent vector, create new calibration