commit 7520f96dbee2c7ab55e580a0ee4d6cd0a9e5f766
parent b70d28b1f63423e6f11ac2328f4cca45bc36ab05
Author: Kyle Milz <kyle@0x30.net>
Date: Mon, 8 Aug 2016 23:09:20 -0600
src: use an ostringstream
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/inst_action.cc b/src/inst_action.cc
@@ -74,12 +74,12 @@ InstrumentAction::EndSourceFileAction()
string const file_name = getCurrentFile();
//
- // Write instrumentation preamble. Includes
+ // Write instrumentation preamble. Includes:
// - runtime header,
// - per tu citrun_node
// - static constructor for runtime initialization
//
- stringstream preamble;
+ ostringstream preamble;
preamble << "#ifdef __cplusplus" << endl
<< "extern \"C\" {" << endl
<< "#endif" << endl;