aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32
diff options
context:
space:
mode:
authornyamatongwe <unknown>2013-05-24 00:04:54 +1000
committernyamatongwe <unknown>2013-05-24 00:04:54 +1000
commit85237dd55cd67cf9f72a751f5a275a910350e5cd (patch)
tree6a0072e11ce30bf18130cf7fcc3baa37d5fd92fe /win32
parentd6e875c9b3a507551eb32ca3fff159eb07189fd9 (diff)
downloadscintilla-mirror-85237dd55cd67cf9f72a751f5a275a910350e5cd.tar.gz
Made methods const where they can be and are logically const as well.
Diffstat (limited to 'win32')
-rw-r--r--win32/ScintillaWin.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index 94d676a4f..3bdc4a1cc 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -276,7 +276,7 @@ class ScintillaWin :
void FullPaint();
void FullPaintDC(HDC dc);
bool IsCompatibleDC(HDC dc);
- DWORD EffectFromState(DWORD grfKeyState);
+ DWORD EffectFromState(DWORD grfKeyState) const;
virtual int SetScrollInfo(int nBar, LPCSCROLLINFO lpsi, BOOL bRedraw);
virtual bool GetScrollInfo(int nBar, LPSCROLLINFO lpsi);
@@ -310,13 +310,13 @@ public:
friend class DropSource;
friend class DataObject;
friend class DropTarget;
- bool DragIsRectangularOK(CLIPFORMAT fmt) {
+ bool DragIsRectangularOK(CLIPFORMAT fmt) const {
return drag.rectangular && (fmt == cfColumnSelect);
}
private:
// For use in creating a system caret
- bool HasCaretSizeChanged();
+ bool HasCaretSizeChanged() const;
BOOL CreateSystemCaret();
BOOL DestroySystemCaret();
HBITMAP sysCaretBitmap;
@@ -2457,7 +2457,7 @@ bool ScintillaWin::IsCompatibleDC(HDC hOtherDC) {
return isCompatible;
}
-DWORD ScintillaWin::EffectFromState(DWORD grfKeyState) {
+DWORD ScintillaWin::EffectFromState(DWORD grfKeyState) const {
// These are the Wordpad semantics.
DWORD dwEffect;
if (inDragDrop == ddDragging) // Internal defaults to move
@@ -2739,7 +2739,7 @@ bool ScintillaWin::Unregister() {
return result;
}
-bool ScintillaWin::HasCaretSizeChanged() {
+bool ScintillaWin::HasCaretSizeChanged() const {
if (
( (0 != vs.caretWidth) && (sysCaretWidth != vs.caretWidth) )
|| ((0 != vs.lineHeight) && (sysCaretHeight != vs.lineHeight))