[vte] regex: Simplify code
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] regex: Simplify code
- Date: Wed, 7 Oct 2015 20:15:41 +0000 (UTC)
commit 52c966d30ea4e95165835c3b41a43851679d53c5
Author: Christian Persch <chpe gnome org>
Date: Wed Oct 7 22:15:05 2015 +0200
regex: Simplify code
These conditionals can only be true if we set [se]blank above,
so we can move them inside the block.
src/vte.cc | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 21e051d..7a24ecc 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -1890,13 +1890,14 @@ vte_terminal_match_check_internal_gregex(VteTerminal *terminal,
rm_so < eblank) {
eblank = rm_so;
}
- }
- if (sblank > start_blank) {
- start_blank = sblank;
- }
- if (eblank < end_blank) {
- end_blank = eblank;
- }
+
+ if (sblank > start_blank) {
+ start_blank = sblank;
+ }
+ if (eblank < end_blank) {
+ end_blank = eblank;
+ }
+ }
g_match_info_next(match_info, NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]