summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <randomdan@akira.random.lan>2014-12-01 16:31:26 +0000
committerDan Goodliffe <randomdan@akira.random.lan>2014-12-01 16:31:26 +0000
commitbb319b5d157168740d5a86666fc197bb899b3887 (patch)
tree0b3a6b53ecc6ccc54123ed287dfeabe41ec30c28
parentAdd null check when iterating model parts (diff)
downloadproject2-bb319b5d157168740d5a86666fc197bb899b3887.tar.bz2
project2-bb319b5d157168740d5a86666fc197bb899b3887.tar.xz
project2-bb319b5d157168740d5a86666fc197bb899b3887.zip
Use char * for logging as it can represent null
-rw-r--r--project2/ice/slice2Common.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/project2/ice/slice2Common.cpp b/project2/ice/slice2Common.cpp
index 0c7df54..1b5f9ee 100644
--- a/project2/ice/slice2Common.cpp
+++ b/project2/ice/slice2Common.cpp
@@ -35,7 +35,7 @@ Slice2Common::FunctionBegin(Slice::OperationPtr o)
fprintf(code, "ice @ %%p\", \n");
fprintf(code, "\t\t\t\t\t\t\t\t__PRETTY_FUNCTION__, ");
BOOST_FOREACH(const auto & p, o->parameters()) {
- fprintf(code, "%s(ec).as<std::string>(), ", p->name().c_str());
+ fprintf(code, "%s(ec).as<const char *>(), ", p->name().c_str());
}
fprintf(code, "ice);\n");