aboutsummaryrefslogtreecommitdiff
path: root/libdino
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2021-10-12 17:54:00 +0200
committerfiaxh <git@lightrise.org>2021-10-12 19:53:22 +0200
commitb71196ef073dc1c49f4e42c0380b553286fe426c (patch)
tree2315ac1c5a2410b290646d9a4a3696e4bd40c5ae /libdino
parent9285fd07bf555fdf46954c4adfa58751e44633a3 (diff)
downloaddino-b71196ef073dc1c49f4e42c0380b553286fe426c.tar.gz
dino-b71196ef073dc1c49f4e42c0380b553286fe426c.zip
Fix compiler warnings ('passing argument .. from incompatible pointer type') by passing (non)const argument
Diffstat (limited to 'libdino')
-rw-r--r--libdino/src/service/blocking_manager.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdino/src/service/blocking_manager.vala b/libdino/src/service/blocking_manager.vala
index 183c8a9e..aa07f990 100644
--- a/libdino/src/service/blocking_manager.vala
+++ b/libdino/src/service/blocking_manager.vala
@@ -27,12 +27,12 @@ public class BlockingManager : StreamInteractionModule, Object {
public void block(Account account, Jid jid) {
XmppStream stream = stream_interactor.get_stream(account);
- stream.get_module(Xmpp.Xep.BlockingCommand.Module.IDENTITY).block(stream, new ArrayList<string>.wrap(new string[] {jid.to_string()}));
+ stream.get_module(Xmpp.Xep.BlockingCommand.Module.IDENTITY).block(stream, { jid.to_string() });
}
public void unblock(Account account, Jid jid) {
XmppStream stream = stream_interactor.get_stream(account);
- stream.get_module(Xmpp.Xep.BlockingCommand.Module.IDENTITY).unblock(stream, new ArrayList<string>.wrap(new string[] {jid.to_string()}));
+ stream.get_module(Xmpp.Xep.BlockingCommand.Module.IDENTITY).unblock(stream, { jid.to_string() });
}
public bool is_supported(Account account) {