From: mpech Date: Fri, 8 Jul 2011 10:51:44 +0000 (+0200) Subject: getSpacing X-Git-Tag: v1.3.0~295^2~1 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=627ed56d8b46f182a45781a6a26aa099638371b1;p=clitk.git getSpacing --- diff --git a/tests/tools/toolTestRunner.cxx b/tests/tools/toolTestRunner.cxx index 0eb1f90..26001a0 100644 --- a/tests/tools/toolTestRunner.cxx +++ b/tests/tools/toolTestRunner.cxx @@ -32,13 +32,13 @@ int getOutputOptionIndex(int argc, char** argv){ } return NO_OUTPUT_OPTION; } -inline char* getTmpFileName(){ +std::string getTmpFileName(){ char buffer [L_tmpnam]; char* back = tmpnam (buffer); if(back==NULL){ exit(1); } - return back; + return std::string(back); } /** * argv @@ -61,29 +61,28 @@ int main(int argc, char** argv){ std::ostringstream cmd_line; cmd_line< "<"<