D14922: Assert if trying to use a KCatalog without a QCoreApplication

David Faure noreply at phabricator.kde.org
Sun Aug 19 09:21:49 BST 2018


dfaure added inline comments.

INLINE COMMENTS

> kcatalog.cpp:188
>      if (language != currentLanguage || !bindDone) {
> +        Q_ASSERT(QCoreApplication::instance() && "You need to instantiate a Q*Application before using KCatalog");
> +        if (!QCoreApplication::instance()) {

Q_ASSERT_X exists for this purpose

REPOSITORY
  R249 KI18n

REVISION DETAIL
  https://phabricator.kde.org/D14922

To: aacid
Cc: dfaure, ltoscano, ilic, kde-frameworks-devel, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180819/d335cad0/attachment.html>


More information about the Kde-frameworks-devel mailing list