Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-05-31 15:51:19 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-05-31 15:55:15 +0300
commitd8dbd49a2f23b7637f05fc058f39bdf6ab706624 (patch)
tree0805b9372c82ae6505d87e879824efe1d3e32f8e /source/blender/freestyle/intern/view_map/Interface0D.h
parent8987f7987d8160e1f6e79e8c85d6ce65b885ab25 (diff)
Cleanup: style, use braces in source/
Automated using clang-tidy.
Diffstat (limited to 'source/blender/freestyle/intern/view_map/Interface0D.h')
-rw-r--r--source/blender/freestyle/intern/view_map/Interface0D.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/freestyle/intern/view_map/Interface0D.h b/source/blender/freestyle/intern/view_map/Interface0D.h
index 3d50e978147..724a98f047f 100644
--- a/source/blender/freestyle/intern/view_map/Interface0D.h
+++ b/source/blender/freestyle/intern/view_map/Interface0D.h
@@ -196,8 +196,9 @@ class Interface0DIterator : public Iterator {
/*! Destructor */
virtual ~Interface0DIterator()
{
- if (_iterator)
+ if (_iterator) {
delete _iterator;
+ }
}
/*! Operator =
@@ -207,8 +208,9 @@ class Interface0DIterator : public Iterator {
*/
Interface0DIterator &operator=(const Interface0DIterator &it)
{
- if (_iterator)
+ if (_iterator) {
delete _iterator;
+ }
_iterator = it._iterator->copy();
return *this;
}
@@ -216,8 +218,9 @@ class Interface0DIterator : public Iterator {
/*! Returns the string "Interface0DIterator". */
virtual string getExactTypeName() const
{
- if (!_iterator)
+ if (!_iterator) {
return "Interface0DIterator";
+ }
return _iterator->getExactTypeName() + "Proxy";
}
@@ -299,8 +302,9 @@ class Interface0DIterator : public Iterator {
/*! Returns true when the iterator is pointing to the final valid element. */
virtual bool atLast() const
{
- if (_iterator->isEnd())
+ if (_iterator->isEnd()) {
return false;
+ }
_iterator->increment();
bool result = _iterator->isEnd();