]> git.lyx.org Git - features.git/commitdiff
compile fix following undo/redo mixup. Sorry.
authorAbdelrazak Younes <younes@lyx.org>
Thu, 13 Dec 2007 10:43:29 +0000 (10:43 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 13 Dec 2007 10:43:29 +0000 (10:43 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22124 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/FileName.cpp
src/support/FileName.h

index 63f13e23250247aa8a19a5edb0000946d4507d3c..2fa0ecfa22e381fee1bf63e1881001a134166c95 100644 (file)
@@ -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;
        }
index b74ca1bf17469558ed8f4a4e8d258fbe10c0b032..c8886a80288b6185f17f22f3a23b6880b3e103b7 100644 (file)
@@ -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;