aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authorZufu Liu <unknown>2024-05-16 21:49:11 +1000
committerZufu Liu <unknown>2024-05-16 21:49:11 +1000
commit8d4e03d3e827540d1f60e96091c0c71973910ff5 (patch)
tree965e76688da4d730e62c4d145e657ecc000e8323 /src/Editor.cxx
parent6d8ede848cc9d55d2632b66017979889a5280225 (diff)
downloadscintilla-mirror-8d4e03d3e827540d1f60e96091c0c71973910ff5.tar.gz
Feature [feature-requests:#1516]. Access SpecialRepresentations through a
unique_ptr. Reduces executable size.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 12076e003..f27c19aa5 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -217,7 +217,7 @@ void Editor::Finalise() {
}
void Editor::SetRepresentations() {
- reprs.SetDefaultRepresentations(pdoc->dbcsCodePage);
+ reprs->SetDefaultRepresentations(pdoc->dbcsCodePage);
}
void Editor::DropGraphics() noexcept {
@@ -8436,11 +8436,11 @@ sptr_t Editor::WndProc(Message iMessage, uptr_t wParam, sptr_t lParam) {
return vs.controlCharSymbol;
case Message::SetRepresentation:
- reprs.SetRepresentation(ConstCharPtrFromUPtr(wParam), ConstCharPtrFromSPtr(lParam));
+ reprs->SetRepresentation(ConstCharPtrFromUPtr(wParam), ConstCharPtrFromSPtr(lParam));
break;
case Message::GetRepresentation: {
- const Representation *repr = reprs.RepresentationFromCharacter(
+ const Representation *repr = reprs->RepresentationFromCharacter(
ConstCharPtrFromUPtr(wParam));
if (repr) {
return StringResult(lParam, repr->stringRep.c_str());
@@ -8449,7 +8449,7 @@ sptr_t Editor::WndProc(Message iMessage, uptr_t wParam, sptr_t lParam) {
}
case Message::ClearRepresentation:
- reprs.ClearRepresentation(ConstCharPtrFromUPtr(wParam));
+ reprs->ClearRepresentation(ConstCharPtrFromUPtr(wParam));
break;
case Message::ClearAllRepresentations:
@@ -8457,11 +8457,11 @@ sptr_t Editor::WndProc(Message iMessage, uptr_t wParam, sptr_t lParam) {
break;
case Message::SetRepresentationAppearance:
- reprs.SetRepresentationAppearance(ConstCharPtrFromUPtr(wParam), static_cast<RepresentationAppearance>(lParam));
+ reprs->SetRepresentationAppearance(ConstCharPtrFromUPtr(wParam), static_cast<RepresentationAppearance>(lParam));
break;
case Message::GetRepresentationAppearance: {
- const Representation *repr = reprs.RepresentationFromCharacter(
+ const Representation *repr = reprs->RepresentationFromCharacter(
ConstCharPtrFromUPtr(wParam));
if (repr) {
return static_cast<sptr_t>(repr->appearance);
@@ -8469,11 +8469,11 @@ sptr_t Editor::WndProc(Message iMessage, uptr_t wParam, sptr_t lParam) {
return 0;
}
case Message::SetRepresentationColour:
- reprs.SetRepresentationColour(ConstCharPtrFromUPtr(wParam), ColourRGBA(static_cast<int>(lParam)));
+ reprs->SetRepresentationColour(ConstCharPtrFromUPtr(wParam), ColourRGBA(static_cast<int>(lParam)));
break;
case Message::GetRepresentationColour: {
- const Representation *repr = reprs.RepresentationFromCharacter(
+ const Representation *repr = reprs->RepresentationFromCharacter(
ConstCharPtrFromUPtr(wParam));
if (repr) {
return repr->colour.AsInteger();