diff options
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 { |