git-svn-id: svn://db.shs.com.ru/pip@210 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2016-07-24 19:58:02 +00:00
parent 8f02f0ed90
commit a0ac0dde6e
4 changed files with 22 additions and 1 deletions

View File

@@ -382,6 +382,13 @@ PIFile & PIFile::writeToBinLog(ushort id, const void * data, int size) {
}
PIFile &PIFile::operator <<(const PIString & v) {
if (canWrite() && fd != 0)
*this << v.toCharset(defaultCharset());
return *this;
}
void PIFile::clear() {
close();
fd = fopen(path().data(), "w");