Make 1st parameter of CConfig::Write() a reference.

Pointer doesn't make much sense, because File can't be NULL.
This commit is contained in:
Alexey Sokolov
2011-09-07 02:17:42 +07:00
parent 508ca27a4c
commit fa9321ac2d
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -499,7 +499,7 @@ bool CZNC::WriteConfig() {
config.AddSubConfig("User", it->second->GetUserName(), it->second->ToConfig());
}
config.Write(pFile);
config.Write(*pFile);
// If Sync() fails... well, let's hope nothing important breaks..
pFile->Sync();