From c62eccafb0e3825925727302024db6f64af3a3ef Mon Sep 17 00:00:00 2001 From: Xavrax Date: Thu, 12 Oct 2023 15:55:04 +0200 Subject: [PATCH] reference --- qt/pubnub_qt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qt/pubnub_qt.h b/qt/pubnub_qt.h index 024ccd71..2811b119 100644 --- a/qt/pubnub_qt.h +++ b/qt/pubnub_qt.h @@ -334,7 +334,7 @@ class crypto_module: public into_crypto_provider_ptr { * * @see pubnub_crypto_aes_cbc_module_init */ - static crypto_module aes_cbc(QString cipher_key) + static crypto_module aes_cbc(QString &cipher_key) { return crypto_module(pubnub_crypto_aes_cbc_module_init((uint8_t*)(cipher_key.toStdString().c_str()))); } @@ -348,7 +348,7 @@ class crypto_module: public into_crypto_provider_ptr { * * @see pubnub_crypto_legacy_module_init */ - static crypto_module legacy(QString cipher_key) + static crypto_module legacy(QString &cipher_key) { return crypto_module(pubnub_crypto_legacy_module_init((uint8_t*)(cipher_key.toStdString().c_str()))); }