TextEditor: Avoid unneeded indirection

Change-Id: I1ca7b390f13a4cc99d2e642a77f3e8e11bb37bd1
Reviewed-by: David Schulz <david.schulz@digia.com>