[geary: 12/23] Use default format- and parser-options instead of creating new ones



commit e624ab4d4b31c5036e02419e18f9b73abc0220c3
Author: Torben <torben letorbi gmail com>
Date:   Wed Dec 11 23:42:37 2019 +0100

    Use default format- and parser-options instead of creating new ones

 src/engine/rfc822/rfc822.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/engine/rfc822/rfc822.vala b/src/engine/rfc822/rfc822.vala
index 5d648f7f..ceb749b0 100644
--- a/src/engine/rfc822/rfc822.vala
+++ b/src/engine/rfc822/rfc822.vala
@@ -37,11 +37,11 @@ public void init() {
 }
 
 public GMime.FormatOptions get_format_options() {
-    return new GMime.FormatOptions();
+    return GMime.FormatOptions.get_default();
 }
 
 public GMime.ParserOptions get_parser_options() {
-    return new GMime.ParserOptions();
+    return GMime.ParserOptions.get_default();
 }
 
 public string? get_charset() {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]