Diffstat (limited to 'noncore/apps/opie-reader/Bkmks.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/Bkmks.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/opie-reader/Bkmks.cpp b/noncore/apps/opie-reader/Bkmks.cpp index 0cb9ea9..30d2881 100644 --- a/noncore/apps/opie-reader/Bkmks.cpp +++ b/noncore/apps/opie-reader/Bkmks.cpp @@ -70,49 +70,49 @@ Bkmk& Bkmk::operator=(const Bkmk& rhs) } bool Bkmk::operator==(const Bkmk& rhs) { return (m_position == rhs.m_position && ustrcmp(m_name,rhs.m_name) == 0); } void Bkmk::setAnno(tchar* t) { if (m_anno != NULL) { delete [] m_anno; m_anno = NULL; } if (t != NULL) { int len = ustrlen(t)+1; m_anno = new tchar[len]; for (int i = 0; i < len; i++) m_anno[i] = t[i]; } else m_anno = NULL; } -BkmkFile::BkmkFile(const char *fnm, bool w = false) +BkmkFile::BkmkFile(const char *fnm, bool w ) : wt(w), isUpgraded(false) { if (w) { f = fopen(fnm, "wb"); } else { f = fopen(fnm, "rb"); } } BkmkFile::~BkmkFile() { if (f != NULL) fclose(f); } void BkmkFile::write(tchar* nm, tchar* an, const unsigned int& pos) { if (f != NULL) { unsigned short ln = ustrlen(nm); fwrite(&ln,sizeof(ln),1,f); |