From b7dd8331df2ebf67c2f7b8ae3bd954661cc14a32 Mon Sep 17 00:00:00 2001 From: artemp Date: Thu, 18 Feb 2016 12:54:17 +0100 Subject: [PATCH] use std::ofstream (ref 3300) --- utils/shapeindex/shapeindex.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/shapeindex/shapeindex.cpp b/utils/shapeindex/shapeindex.cpp index a96aba346..f54508c45 100644 --- a/utils/shapeindex/shapeindex.cpp +++ b/utils/shapeindex/shapeindex.cpp @@ -255,8 +255,7 @@ int main (int argc,char** argv) if (count > 0) { std::clog << " number shapes=" << count << std::endl; - std::fstream file((shapename+".index").c_str(), - std::ios::in | std::ios::out | std::ios::trunc | std::ios::binary); + std::ofstream file((shapename+".index").c_str(), std::ios::trunc | std::ios::binary); if (!file) { std::clog << "cannot open index file for writing file \""