Cursor: constify.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37160 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2011-01-10 09:38:20 +00:00
parent 28c7e370f5
commit 6eea764ead
3 changed files with 13 additions and 13 deletions

View File

@ -2132,31 +2132,31 @@ Encoding const * Cursor::getEncoding() const
}
void Cursor::undispatched()
void Cursor::undispatched() const
{
disp_.dispatched(false);
}
void Cursor::dispatched()
void Cursor::dispatched() const
{
disp_.dispatched(true);
}
void Cursor::screenUpdateFlags(Update::flags f)
void Cursor::screenUpdateFlags(Update::flags f) const
{
disp_.screenUpdate(f);
}
void Cursor::forceBufferUpdate()
void Cursor::forceBufferUpdate() const
{
disp_.forceBufferUpdate();
}
void Cursor::clearBufferUpdate()
void Cursor::clearBufferUpdate() const
{
disp_.clearBufferUpdate();
}
@ -2168,7 +2168,7 @@ bool Cursor::needBufferUpdate() const
}
void Cursor::noScreenUpdate()
void Cursor::noScreenUpdate() const
{
disp_.screenUpdate(Update::None);
}

View File

@ -225,15 +225,15 @@ public:
* Right Thing (even if my getStatus partner said that I can do it).
* It is sort of a kludge that should be used only rarely...
*/
void undispatched();
void undispatched() const;
/// the event was already dispatched
void dispatched();
void dispatched() const;
/// Set which screen update should be done
void screenUpdateFlags(Update::flags f);
void screenUpdateFlags(Update::flags f) const;
/// Forces an updateBuffer() call
void forceBufferUpdate();
void forceBufferUpdate() const;
/// Removes any pending updateBuffer() call
void clearBufferUpdate();
void clearBufferUpdate() const;
/// Do we need to call updateBuffer()?
bool needBufferUpdate() const;
/**
@ -246,7 +246,7 @@ public:
* This is a fairly rare event as well and only some optimization.
* Not using noScreenUpdate() should never be wrong.
*/
void noScreenUpdate();
void noScreenUpdate() const;
/// fix cursor in circumstances that should never happen.
/// \retval true if a fix occured.
bool fixIfBroken();

View File

@ -97,7 +97,7 @@ bool checkPastePossible(int index)
pair<PitPosPair, pit_type>
pasteSelectionHelper(Cursor & cur, ParagraphList const & parlist,
pasteSelectionHelper(Cursor const & cur, ParagraphList const & parlist,
DocumentClass const * const oldDocClass, ErrorList & errorlist)
{
Buffer const & buffer = *cur.buffer();