From d89fa2bd4944625e2dbe56d5709a3f126db24f21 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 16 May 2017 21:48:02 +0300 Subject: Clean up a set of RTL-related comments It is fairly pointless to have a comment like "--- RTL --- (mirror mouse pos)" in front of code that obviously is related to RTL anyway, like "if( AllSettings::GetLayoutRTL() )". Also, the fact that many comment were exactly the same indicates that they has been added as an in-line version control change marker. In other places, comments were informational, but no need for them to include yet another metasyntax, "--- RTL ---". Just "RTL:" works fine. Change-Id: I20feef308ed8ac9d32a8bf440fc20b442753c4ff --- vcl/source/control/edit.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vcl/source/control') diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index 236c706b9e71..406cf2d9faba 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -289,7 +289,7 @@ void Edit::ImplInitEditData() mpIMEInfos = nullptr; mcEchoChar = 0; - // --- RTL --- no default mirroring for Edit controls + // no default mirroring for Edit controls // note: controls that use a subedit will revert this (SpinField, ComboBox) EnableRTL( false ); @@ -326,7 +326,7 @@ void Edit::ImplInit(vcl::Window* pParent, WinBits nStyle) mnAlign = EDIT_ALIGN_LEFT; - // --- RTL --- hack: right align until keyinput and cursor travelling works + // hack: right align until keyinput and cursor travelling works if( IsRTLEnabled() ) mnAlign = EDIT_ALIGN_RIGHT; @@ -2192,7 +2192,7 @@ void Edit::StateChanged( StateChangedType nType ) sal_uInt16 nOldAlign = mnAlign; mnAlign = EDIT_ALIGN_LEFT; - // --- RTL --- hack: right align until keyinput and cursor travelling works + // hack: right align until keyinput and cursor travelling works // edits are always RTL disabled // however the parent edits contain the correct setting if (mbIsSubEdit && GetParent()->IsRTLEnabled()) -- cgit