diff options
author | Neil <nyamatongwe@gmail.com> | 2018-05-18 13:50:41 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-05-18 13:50:41 +1000 |
commit | 96cf9078786ae2e4a8aaf56468e6d069e73ed9c0 (patch) | |
tree | b243aca6aa7d2e8deb96e6d0f111477d1aa1812c | |
parent | fdcfd5a055e284a035e51b1f4a8e9f5584caea6d (diff) | |
download | scintilla-mirror-96cf9078786ae2e4a8aaf56468e6d069e73ed9c0.tar.gz |
Backport: Can use const now that Font::GetID is const.
Backport of changeset 6960:6da8a5e47c98.
-rw-r--r-- | src/Style.cxx | 2 | ||||
-rw-r--r-- | src/Style.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Style.cxx b/src/Style.cxx index 11509c1ba..af09ac10f 100644 --- a/src/Style.cxx +++ b/src/Style.cxx @@ -27,7 +27,7 @@ FontAlias::~FontAlias() { // ~Font will not release the actual font resource since it is now 0 } -void FontAlias::MakeAlias(Font &fontOrigin) { +void FontAlias::MakeAlias(const Font &fontOrigin) { SetID(fontOrigin.GetID()); } diff --git a/src/Style.h b/src/Style.h index 441d0150a..81b399806 100644 --- a/src/Style.h +++ b/src/Style.h @@ -39,7 +39,7 @@ public: FontAlias &operator=(const FontAlias &) = delete; FontAlias &operator=(FontAlias &&) = delete; ~FontAlias() override; - void MakeAlias(Font &fontOrigin); + void MakeAlias(const Font &fontOrigin); void ClearFont(); }; |