From 6f21310e0850d598ebe3a3ee8de9e362e89794ec Mon Sep 17 00:00:00 2001 From: Gabriel Ozouf Date: Fri, 30 Oct 2020 14:17:33 +0100 Subject: [PATCH] [ion/events] Add comment about defaultText method Change-Id: Ief2b53395a7921d85b116ded935c9dfeb10d08fd --- ion/src/shared/events.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ion/src/shared/events.cpp b/ion/src/shared/events.cpp index 3aed09216..e16a37c33 100644 --- a/ion/src/shared/events.cpp +++ b/ion/src/shared/events.cpp @@ -61,6 +61,8 @@ bool Event::isDefined() const { } const char * Event::defaultText() const { + /* As the ExternalText event is only available on the simulator, we save a + * comparison by not handling it on the device. */ if (m_id >= 4*PageSize) { return nullptr; }