aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/StyleContext.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-04-20 16:10:17 +1000
committerNeil <nyamatongwe@gmail.com>2017-04-20 16:10:17 +1000
commitcd65e0b6478f38b809dd08805e7795a9d8b669eb (patch)
tree22400d8bc12111e14f9597d0cc3fddc02ca1552f /lexlib/StyleContext.h
parent8358208fe8b26366b7777b2bb4e925d7f4268836 (diff)
downloadscintilla-mirror-cd65e0b6478f38b809dd08805e7795a9d8b669eb.tar.gz
More consistent deletion of standard methods.
Diffstat (limited to 'lexlib/StyleContext.h')
-rw-r--r--lexlib/StyleContext.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lexlib/StyleContext.h b/lexlib/StyleContext.h
index 045939f14..7b2f59c00 100644
--- a/lexlib/StyleContext.h
+++ b/lexlib/StyleContext.h
@@ -27,8 +27,6 @@ class StyleContext {
Sci_PositionU currentPosLastRelative;
Sci_Position offsetRelative;
- StyleContext &operator=(const StyleContext &);
-
void GetNextChar() {
if (multiByteAccess) {
chNext = multiByteAccess->GetCharacterAndWidth(currentPos+width, &widthNext);
@@ -97,6 +95,9 @@ public:
GetNextChar();
}
+ // Deleted so StyleContext objects can not be copied
+ StyleContext(const StyleContext &) = delete;
+ StyleContext &operator=(const StyleContext &) = delete;
void Complete() {
styler.ColourTo(currentPos - ((currentPos > lengthDocument) ? 2 : 1), state);
styler.Flush();