aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/unified_window.vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2019-03-14 17:38:48 +0100
committerfiaxh <git@lightrise.org>2019-03-14 17:39:31 +0100
commit952ac9548402744ac9b13917255b9e461a96abe5 (patch)
tree0aa4c1c87b0da5961450cf024b1684e264d13c09 /main/src/ui/unified_window.vala
parentfb504308d03e078422422b57323f89ae86dac466 (diff)
downloaddino-952ac9548402744ac9b13917255b9e461a96abe5.tar.gz
dino-952ac9548402744ac9b13917255b9e461a96abe5.zip
Use regex literals, fixes some compiler warnings
Diffstat (limited to 'main/src/ui/unified_window.vala')
-rw-r--r--main/src/ui/unified_window.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/ui/unified_window.vala b/main/src/ui/unified_window.vala
index 44107fb3..aa1aac60 100644
--- a/main/src/ui/unified_window.vala
+++ b/main/src/ui/unified_window.vala
@@ -28,7 +28,7 @@ public class UnifiedWindow : Gtk.Window {
return Util.use_csd() ? conversation_titlebar_csd.subtitle : conversation_titlebar.subtitle;
}
set {
- string? new_subtitle = value == null ? null : (new Regex("\\s+")).replace_literal(value, -1, 0, " ");
+ string? new_subtitle = value == null ? null : (/\s+/).replace_literal(value, -1, 0, " ");
if (Util.use_csd()) {
conversation_titlebar_csd.subtitle = new_subtitle;
} else {