From f3af56a70e935e4d99ddeda11355decbbe5bf252 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B5=D0=BB=D0=B8=D0=BF=D0=B5=D0=BD=D0=BA=D0=BE=20?= =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD?= Date: Tue, 23 Aug 2016 17:07:32 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/pip@237 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- src/io/pifile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/io/pifile.cpp b/src/io/pifile.cpp index 8d02201c..de80cf33 100755 --- a/src/io/pifile.cpp +++ b/src/io/pifile.cpp @@ -131,7 +131,7 @@ PIFile::PIFile(const PIString & path, PIIODevice::DeviceMode mode): PIIODevice(p fdi = -1; setPrecision(5); if (!path.isEmpty()) - openDevice(); + open(); } @@ -147,7 +147,6 @@ bool PIFile::openDevice() { close(); PIString p = path(); if (p.isEmpty()) return false; - //piCout << "fopen " << path_.data() << ": " << strType(mode_).data() << fd; if ((mode_ & PIIODevice::WriteOnly) == PIIODevice::WriteOnly) { if (!isExists(p)) { FILE * fd = fopen(p.data(), "w"); @@ -155,6 +154,7 @@ bool PIFile::openDevice() { } } fd = _fopen_call_(p.data(), strType(mode_).data()); + //piCout << "fopen " << path() << ": " << strType(mode_).data() << fd; bool opened = (fd != 0); if (opened) { fdi = fileno(fd);