aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src
diff options
context:
space:
mode:
authorlinkmauve <linkmauve@linkmauve.fr>2017-10-23 15:10:15 +0100
committerfiaxh <fiaxh@users.noreply.github.com>2017-10-23 16:10:15 +0200
commit1e1aa704a2e50d8712878253eaf8ec3d3c4a15d9 (patch)
tree9b2e749b0d7de8d20067ce47ae7ff824fa12a0aa /xmpp-vala/src
parente7b5aa140b49bfad2f64c6a4a18fa7878d9680d9 (diff)
downloaddino-1e1aa704a2e50d8712878253eaf8ec3d3c4a15d9.tar.gz
dino-1e1aa704a2e50d8712878253eaf8ec3d3c4a15d9.zip
Remove new from struct initialisation, as it is deprecated (#180)
* Remove new from struct initialisation, as it is deprecated. * Use Map.has_key instead of Map.contains, as it is deprecated.
Diffstat (limited to 'xmpp-vala/src')
-rw-r--r--xmpp-vala/src/module/xep/0082_date_time_profiles.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmpp-vala/src/module/xep/0082_date_time_profiles.vala b/xmpp-vala/src/module/xep/0082_date_time_profiles.vala
index 8c7dffc1..b23dfe7a 100644
--- a/xmpp-vala/src/module/xep/0082_date_time_profiles.vala
+++ b/xmpp-vala/src/module/xep/0082_date_time_profiles.vala
@@ -1,7 +1,7 @@
namespace Xmpp.Xep.DateTimeProfiles {
public DateTime? parse_string(string time_string) {
- TimeVal time_val = new TimeVal();
+ TimeVal time_val = TimeVal();
if (time_val.from_iso8601(time_string)) {
return new DateTime.from_unix_utc(time_val.tv_sec);
}