mirror of
https://github.com/znc/znc.git
synced 2026-06-26 21:12:03 +02:00
Document most of CString and MCString
There are only some "minor" functions that are still undocumented now. This also sneaks in an API change: A useless file mode argument to MCString::ReadFromDisk() is gone. Opening a file doesn't ask for a file mode. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2157 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+3
-3
@@ -1031,7 +1031,7 @@ bool CString::RightChomp(unsigned int uLen) {
|
||||
}
|
||||
|
||||
//////////////// MCString ////////////////
|
||||
int MCString::WriteToDisk(const CString& sPath, mode_t iMode) const {
|
||||
MCString::status_t MCString::WriteToDisk(const CString& sPath, mode_t iMode) const {
|
||||
CFile cFile(sPath);
|
||||
|
||||
if (this->empty()) {
|
||||
@@ -1066,10 +1066,10 @@ int MCString::WriteToDisk(const CString& sPath, mode_t iMode) const {
|
||||
return MCS_SUCCESS;
|
||||
}
|
||||
|
||||
int MCString::ReadFromDisk(const CString& sPath, mode_t iMode) {
|
||||
MCString::status_t MCString::ReadFromDisk(const CString& sPath) {
|
||||
clear();
|
||||
CFile cFile(sPath);
|
||||
if (!cFile.Open(O_RDONLY, iMode)) {
|
||||
if (!cFile.Open(O_RDONLY)) {
|
||||
return MCS_EOPEN;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user