aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2013-05-02 14:51:06 +1000
committernyamatongwe <devnull@localhost>2013-05-02 14:51:06 +1000
commit4a0c34d751dbf5b6f17c0ff5f4334b74ae1e6f9c (patch)
treeb64b57ec886311495b18259c7464dfc992668140 /src/Editor.cxx
parent99b7137e39e76ef912a7928aa7e12b284b46b1ec (diff)
downloadscintilla-mirror-4a0c34d751dbf5b6f17c0ff5f4334b74ae1e6f9c.tar.gz
Replacing raw pointers and allocations with std::vector and std::map.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 9b98775c9..e209ede62 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -3854,7 +3854,7 @@ long Editor::FormatRange(bool draw, Sci_RangeToFormat *pfr) {
vsPrint.braceBadLightIndicatorSet = false;
// Set colours for printing according to users settings
- for (size_t sty = 0; sty < vsPrint.stylesSize; sty++) {
+ for (size_t sty = 0; sty < vsPrint.styles.size(); sty++) {
if (printColourMode == SC_PRINT_INVERTLIGHT) {
vsPrint.styles[sty].fore = InvertedLight(vsPrint.styles[sty].fore);
vsPrint.styles[sty].back = InvertedLight(vsPrint.styles[sty].back);
@@ -8263,7 +8263,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
break;
case SCI_TEXTWIDTH:
- PLATFORM_ASSERT(wParam < vs.stylesSize);
+ PLATFORM_ASSERT(wParam < vs.styles.size());
PLATFORM_ASSERT(lParam);
return TextWidth(wParam, CharPtrFromSPtr(lParam));