From bfd76b4e60b9b324da34d43504350532560d4f8e Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 17 Jan 2017 13:49:21 +0200 Subject: [PATCH] Code style. --HG-- branch : feature --- src/libs/vpatterndb/vcontainer.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/libs/vpatterndb/vcontainer.h b/src/libs/vpatterndb/vcontainer.h index 0d43f14be..aeeacb164 100644 --- a/src/libs/vpatterndb/vcontainer.h +++ b/src/libs/vpatterndb/vcontainer.h @@ -256,9 +256,9 @@ template const QSharedPointer VContainer::GeometricObject(const quint32 &id) const { QSharedPointer gObj = QSharedPointer(); - if (d->gObjects.contains(id)) - { - gObj = d->gObjects.value(id); + if (d->gObjects.contains(id)) + { + gObj = d->gObjects.value(id); } else { @@ -269,11 +269,11 @@ const QSharedPointer VContainer::GeometricObject(const quint32 &id) const QSharedPointer obj = qSharedPointerDynamicCast(gObj); SCASSERT(obj.isNull() == false) return obj; - } - catch (const std::bad_alloc &) - { + } + catch (const std::bad_alloc &) + { throw VExceptionBadId(tr("Can't cast object"), id); - } + } }