From 9302bd119fbea7b627a0f171ff9f6d1fe8cc55cf Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Thu, 13 Dec 2007 10:43:29 +0000 Subject: [PATCH] compile fix following undo/redo mixup. Sorry. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22124 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/FileName.cpp | 4 ++-- src/support/FileName.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/support/FileName.cpp b/src/support/FileName.cpp index 63f13e2325..2fa0ecfa22 100644 --- a/src/support/FileName.cpp +++ b/src/support/FileName.cpp @@ -152,12 +152,12 @@ bool FileName::renameTo(FileName const & name) const bool FileName::changePermission(unsigned long int mode) const { - if (!fname.isWritable()) { + if (!isWritable()) { LYXERR0("File " << *this << " is not writable!"); return false; } - if (!chmod(fname, mode)) { + if (!chmod(*this, mode)) { LYXERR0("File " << *this << " cannot be changed to " << mode << " mode!"); return false; } diff --git a/src/support/FileName.h b/src/support/FileName.h index b74ca1bf17..c8886a8028 100644 --- a/src/support/FileName.h +++ b/src/support/FileName.h @@ -104,7 +104,7 @@ public: /// change mode of pointed file. /// \retrun true on success. - bool changeMode(unsigned long int mode) const; + bool changePermission(unsigned long int mode) const; /// remove directory and all contents, returns true on success bool destroyDirectory() const; -- 2.39.2