diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:19:49 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:19:49 +0200 |
commit | c8e0e909b4a8d18319fc65434a10dc446434817c (patch) | |
tree | eee91e7d2ce229dd043811eae8f1e2bd78061916 /file_hierarchy.h | |
parent | 5.2 (diff) | |
download | FreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.tar.gz FreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.tar.bz2 FreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.zip |
5.3
Diffstat (limited to 'file_hierarchy.h')
-rw-r--r-- | file_hierarchy.h | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/file_hierarchy.h b/file_hierarchy.h index e41992a3..4f1c549a 100644 --- a/file_hierarchy.h +++ b/file_hierarchy.h @@ -228,9 +228,9 @@ public: #ifdef _MSC_VER #pragma warning(default : 4355) #endif - baseDirPfL(dirPostfixedLeft), - baseDirPfR(dirPostfixedRight), - dirExistsLeft_(dirExistsLeft), + baseDirPfL (dirPostfixedLeft ), + baseDirPfR (dirPostfixedRight), + dirExistsLeft_ (dirExistsLeft ), dirExistsRight_(dirExistsRight) {} template <SelectedSide side> const Zstring& getBaseDirPf() const; //base sync directory postfixed with FILE_NAME_SEPARATOR @@ -482,7 +482,6 @@ public: template <SelectedSide side> Int64 getLastWriteTime() const; template <SelectedSide side> UInt64 getFileSize () const; template <SelectedSide side> FileId getFileId () const; - template <SelectedSide side> const Zstring getExtension() const; void setMoveRef(ObjectId refId) { moveFileRef = refId; } //reference to corresponding renamed file ObjectId getMoveRef() const { return moveFileRef; } //may be nullptr @@ -1098,19 +1097,6 @@ FileId FileMapping::getFileId<RIGHT_SIDE>() const } -template <SelectedSide side> inline -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.rfind(Zchar('.')); - return pos == Zstring::npos ? - Zstring() : - Zstring(shortName.c_str() + pos + 1); -} - - template <> inline void FileMapping::syncTo<LEFT_SIDE>(const FileDescriptor& descrTarget, const FileDescriptor* descrSource) //copy + update file attributes { |