From 54adaada25f2d8b44f9f15dc6e1b77e73f3cbdd3 Mon Sep 17 00:00:00 2001 From: Paul Wicking Date: Fri, 20 Jul 2018 20:12:43 +0200 Subject: 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 --- src/purchasing/doc/src/gettingstarted-cpp.qdoc | 6 +++--- 1 file 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(); } -- cgit v1.2.3