]> git.lyx.org Git - features.git/commitdiff
constify
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 28 Oct 2022 16:03:50 +0000 (18:03 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 28 Oct 2022 16:03:50 +0000 (18:03 +0200)
src/Buffer.cpp
src/Buffer.h

index 8ab86d4acd07a413c0479a3da95cc13a8ea1f7f6..3c7f1cc1e0f46c26fc9170d643cff3b50def377f 100644 (file)
@@ -2704,7 +2704,7 @@ void Buffer::markDepClean(string const & name)
 }
 
 
-bool Buffer::getStatus(FuncRequest const & cmd, FuncStatus & flag)
+bool Buffer::getStatus(FuncRequest const & cmd, FuncStatus & flag) const
 {
        if (isInternal()) {
                // FIXME? if there is an Buffer LFUN that can be dispatched even
index ba066f724c5cd86f61435060bc515cd4b72941d3..fb7236c3f4a8b3cb841ce35cacd47b8328832aea 100644 (file)
@@ -171,7 +171,7 @@ public:
 
        /// Can this function be exectued?
        /// \return true if we made a decision
-       bool getStatus(FuncRequest const & cmd, FuncStatus & flag);
+       bool getStatus(FuncRequest const & cmd, FuncStatus & flag) const;
 
        ///
        DocIterator getParFromID(int id) const;