diff options
author | Paul Wicking <paulwicking@gmail.com> | 2018-07-20 20:12:43 +0200 |
---|---|---|
committer | Paul Wicking <paul.wicking@qt.io> | 2018-07-23 07:37:50 +0000 |
commit | 54adaada25f2d8b44f9f15dc6e1b77e73f3cbdd3 (patch) | |
tree | 31ec93baf996dd643bb40711ff9fa49686a42aa5 | |
parent | 44a9a2a2f061660ac61cad4b47c7301c63135e88 (diff) |
Doc: Fix broken code snippets in Getting Started/C++ document
Add missing closing parenthesis and missing semi-colon.
Task-number: QTBUG-61834
Change-Id: I93ebd776305ce36f244a69d7379f27392c3addbe
Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
-rw-r--r-- | src/purchasing/doc/src/gettingstarted-cpp.qdoc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/purchasing/doc/src/gettingstarted-cpp.qdoc b/src/purchasing/doc/src/gettingstarted-cpp.qdoc index 96e3b93..40331e9 100644 --- a/src/purchasing/doc/src/gettingstarted-cpp.qdoc +++ b/src/purchasing/doc/src/gettingstarted-cpp.qdoc @@ -147,10 +147,10 @@ { if (transaction->status() == QInAppTransaction::PurchaseApproved && transaction->product()->identifier() == QStringLiteral("healthPotion")) { - if (!hasAlreadyStoredTransaction(transaction->orderId()) { + if (!hasAlreadyStoredTransaction(transaction->orderId())) { ++m_healthPotions; - if (!addHealthPotionToPersistentStorage(transaction->orderId()) - popupErrorDialog(tr("Unable to write to persistent storage. Please make sure there is sufficient space and restart.")) + if (!addHealthPotionToPersistentStorage(transaction->orderId())) + popupErrorDialog(tr("Unable to write to persistent storage. Please make sure there is sufficient space and restart.")); else transaction->finalize(); } |