diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:08:42 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:08:42 +0200 |
commit | c32707148292d104c66276b43796d6057c8c7a5d (patch) | |
tree | bb83513f4aff24153e21a4ec92e34e4c27651b1f /file_hierarchy.h | |
parent | 3.9 (diff) | |
download | FreeFileSync-c32707148292d104c66276b43796d6057c8c7a5d.tar.gz FreeFileSync-c32707148292d104c66276b43796d6057c8c7a5d.tar.bz2 FreeFileSync-c32707148292d104c66276b43796d6057c8c7a5d.zip |
3.10
Diffstat (limited to 'file_hierarchy.h')
-rw-r--r-- | file_hierarchy.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/file_hierarchy.h b/file_hierarchy.h index 2726d2c2..d03184a1 100644 --- a/file_hierarchy.h +++ b/file_hierarchy.h @@ -173,7 +173,7 @@ private: //------------------------------------------------------------------ //save/load full directory information const Zstring& getSyncDBFilename(); //get short filename of database file -const Zstring SYNC_DB_FILE_ENDING = DefaultStr("ffs_db"); +const Zstring SYNC_DB_FILE_ENDING = Zstr("ffs_db"); //------------------------------------------------------------------ /* class hierarchy: @@ -234,8 +234,8 @@ public: protected: //constructor used by DirMapping HierarchyObject(const HierarchyObject& parent, const Zstring& shortName) : - relNamePf(parent.getRelativeNamePf() + shortName + common::FILE_NAME_SEPARATOR), - baseDirLeft(parent.baseDirLeft), + relNamePf( parent.getRelativeNamePf() + shortName + common::FILE_NAME_SEPARATOR), + baseDirLeft( parent.baseDirLeft), baseDirRight(parent.baseDirRight) {} //constructor used by BaseDirMapping @@ -1333,7 +1333,7 @@ const Zstring FileMapping::getExtension() const //attention: Zstring::AfterLast() returns whole string if char not found! -> don't use const Zstring& shortName = getShortName<side>(); - const size_t pos = shortName.Find(DefaultChar('.'), true); + const size_t pos = shortName.rfind(Zchar('.')); return pos == Zstring::npos ? Zstring() : Zstring(shortName.c_str() + pos + 1); |