diff options
| author | Linus Jahn <lnj@kaidan.im> | 2022-09-30 22:16:29 +0200 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2022-09-30 22:16:29 +0200 |
| commit | 668b6f1ae936103dbd0180567dff7fca3d7dd935 (patch) | |
| tree | 54248b51b441ad22eeda7e0641bc27374918b74e /src | |
| parent | b66cf3d8e1482dbddcc5f2e828bf2259cc9bfcab (diff) | |
| download | qxmpp-668b6f1ae936103dbd0180567dff7fca3d7dd935.tar.gz | |
FileSharingManager: Fix type in registerProvider
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/QXmppFileSharingManager.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/QXmppFileSharingManager.h b/src/client/QXmppFileSharingManager.h index a7f4c5dd..96632f3f 100644 --- a/src/client/QXmppFileSharingManager.h +++ b/src/client/QXmppFileSharingManager.h @@ -52,9 +52,10 @@ public: /// /// \brief Register a provider for automatic downloads /// \param manager A shared_ptr to a QXmppFileSharingProvider subclass + /// The provider must define SourceType to the type of the accepted file source. /// template<typename ProviderType> - void registerProivder(std::shared_ptr<ProviderType> manager) + void registerProvider(std::shared_ptr<ProviderType> manager) { std::type_index index(typeid(typename ProviderType::SourceType)); internalRegisterProvider(index, manager); |
