aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-05-07 07:48:47 +1000
committerNeil <nyamatongwe@gmail.com>2019-05-07 07:48:47 +1000
commit82c56778863724c131c2bd67014508350968f9e1 (patch)
tree809920a470acdaf028ec1275f3b1191a58e46a1c
parent957df113f89a3a79e20d1a3287f7c368c3161c6f (diff)
downloadscintilla-mirror-82c56778863724c131c2bd67014508350968f9e1.tar.gz
Backport: Fix warnings from GCC 9 because of a deprecated implicitly-declared operator=
by explicitly implementing the operator=. Backport of changeset 7492:9e738e32ae45.
-rw-r--r--lexers/LexLaTeX.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/lexers/LexLaTeX.cxx b/lexers/LexLaTeX.cxx
index ed9e6a6b3..391a36c5c 100644
--- a/lexers/LexLaTeX.cxx
+++ b/lexers/LexLaTeX.cxx
@@ -39,6 +39,13 @@ struct latexFoldSave {
latexFoldSave(const latexFoldSave &save) : structLev(save.structLev) {
for (int i = 0; i < 8; ++i) openBegins[i] = save.openBegins[i];
}
+ latexFoldSave &operator=(const latexFoldSave &save) {
+ if (this != &save) {
+ structLev = save.structLev;
+ for (int i = 0; i < 8; ++i) openBegins[i] = save.openBegins[i];
+ }
+ return *this;
+ }
int openBegins[8];
Sci_Position structLev;
};