aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2013-11-18 14:54:56 +1100
committerNeil <nyamatongwe@gmail.com>2013-11-18 14:54:56 +1100
commitc715e9dfc7da16a645ae75b57367155ed56061d5 (patch)
treee87706d8d3880675d723d33509796a7c964b8578
parenta9f57f32ed66ee36211e7c450637f7d996484663 (diff)
downloadscintilla-mirror-c715e9dfc7da16a645ae75b57367155ed56061d5.tar.gz
Bug [#1552]. Search string could be const.
-rw-r--r--doc/ScintillaDoc.html2
-rw-r--r--include/Scintilla.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html
index e5bf32e4f..43ec2d526 100644
--- a/doc/ScintillaDoc.html
+++ b/doc/ScintillaDoc.html
@@ -801,7 +801,7 @@ struct Sci_TextRange {
<pre>
struct Sci_TextToFind {
struct <a class="jump" href="#Sci_CharacterRange">Sci_CharacterRange</a> chrg; // range to search
- char *lpstrText; // the search pattern (zero terminated)
+ const char *lpstrText; // the search pattern (zero terminated)
struct Sci_CharacterRange chrgText; // returned as position of matching text
};
</pre>
diff --git a/include/Scintilla.h b/include/Scintilla.h
index b50d20260..a4a559b81 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -1028,7 +1028,7 @@ struct Sci_TextRange {
struct Sci_TextToFind {
struct Sci_CharacterRange chrg;
- char *lpstrText;
+ const char *lpstrText;
struct Sci_CharacterRange chrgText;
};