Skip to content

Commit

Permalink
reduce warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Jun 29, 2017
1 parent 62cdf76 commit 8b2b551
Show file tree
Hide file tree
Showing 624 changed files with 1,862 additions and 1,689 deletions.
6 changes: 3 additions & 3 deletions Engine/AbortableRenderInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
// waste resources.
#define NATRON_ABORT_TIMEOUT_MS 5000

NATRON_NAMESPACE_ENTER;
NATRON_NAMESPACE_ENTER

typedef std::set<AbortableThread*> ThreadSet;

Expand Down Expand Up @@ -279,7 +279,7 @@ AbortableRenderInfo::onAbortTimerTimeout()
}
} // AbortableRenderInfo::onAbortTimerTimeout

NATRON_NAMESPACE_EXIT;
NATRON_NAMESPACE_USING;
NATRON_NAMESPACE_EXIT
NATRON_NAMESPACE_USING

#include "moc_AbortableRenderInfo.cpp"
4 changes: 2 additions & 2 deletions Engine/AbortableRenderInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include "Engine/EngineFwd.h"


NATRON_NAMESPACE_ENTER;
NATRON_NAMESPACE_ENTER

/**
* @brief Holds infos necessary to identify one render request and whether it was aborted or not.
Expand Down Expand Up @@ -153,6 +153,6 @@ public Q_SLOTS:
boost::scoped_ptr<AbortableRenderInfoPrivate> _imp;
};

NATRON_NAMESPACE_EXIT;
NATRON_NAMESPACE_EXIT

#endif // ABORTABLERENDERINFO_H
4 changes: 2 additions & 2 deletions Engine/AfterQuitProcessingI.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

#include "Engine/EngineFwd.h"

NATRON_NAMESPACE_ENTER;
NATRON_NAMESPACE_ENTER

/**
* @brief This class is used to be able to perform an action after a call to Project::quitAnyProcessingForAllNodes has been made.
Expand All @@ -51,6 +51,6 @@ class AfterQuitProcessingI
friend class Project;
};

NATRON_NAMESPACE_EXIT;
NATRON_NAMESPACE_EXIT

#endif // AFTERQUITPROCESSINGI_H
6 changes: 3 additions & 3 deletions Engine/AppInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ CLANG_DIAG_ON(unknown-pragmas)
#include "Engine/Settings.h"
#include "Engine/WriteNode.h"

NATRON_NAMESPACE_ENTER;
NATRON_NAMESPACE_ENTER

FlagSetter::FlagSetter(bool initialValue,
bool* p)
Expand Down Expand Up @@ -2340,7 +2340,7 @@ AppInstance::recheckInvalidExpressions()
}
}

NATRON_NAMESPACE_EXIT;
NATRON_NAMESPACE_EXIT

NATRON_NAMESPACE_USING;
NATRON_NAMESPACE_USING
#include "moc_AppInstance.cpp"
4 changes: 2 additions & 2 deletions Engine/AppInstance.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
#include "Engine/TimeLineKeyFrames.h"
#include "Engine/EngineFwd.h"

NATRON_NAMESPACE_ENTER;
NATRON_NAMESPACE_ENTER

struct AppInstancePrivate;

Expand Down Expand Up @@ -494,6 +494,6 @@ class CreatingNodeTreeFlag_RAII
}
};

NATRON_NAMESPACE_EXIT;
NATRON_NAMESPACE_EXIT

#endif // APPINSTANCE_H
6 changes: 3 additions & 3 deletions Engine/AppManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
Q_DECLARE_METATYPE(QAbstractSocket::SocketState)
#endif

NATRON_NAMESPACE_ENTER;
NATRON_NAMESPACE_ENTER

AppManager* AppManager::_instance = 0;

Expand Down Expand Up @@ -4344,7 +4344,7 @@ NATRON_PYTHON_NAMESPACE::getAttrRecursive(const std::string& fullyQualifiedName,
}
}

NATRON_NAMESPACE_EXIT;
NATRON_NAMESPACE_EXIT

NATRON_NAMESPACE_USING;
NATRON_NAMESPACE_USING
#include "moc_AppManager.cpp"
4 changes: 2 additions & 2 deletions Engine/AppManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ CLANG_DIAG_ON(deprecated)

class QDir;

NATRON_NAMESPACE_ENTER;
NATRON_NAMESPACE_ENTER

enum AppInstanceStatusEnum
{
Expand Down Expand Up @@ -802,7 +802,7 @@ class PythonGILLocker
~PythonGILLocker();
};

NATRON_NAMESPACE_EXIT;
NATRON_NAMESPACE_EXIT


#endif // Engine_AppManager_h
Expand Down
4 changes: 2 additions & 2 deletions Engine/AppManagerPrivate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ GCC_DIAG_ON(unused-parameter)
BOOST_CLASS_EXPORT(NATRON_NAMESPACE::FrameParams)
BOOST_CLASS_EXPORT(NATRON_NAMESPACE::ImageParams)

NATRON_NAMESPACE_ENTER;
NATRON_NAMESPACE_ENTER
AppManagerPrivate::AppManagerPrivate()
: globalTLS()
, _appType(AppManager::eAppTypeBackground)
Expand Down Expand Up @@ -939,4 +939,4 @@ AppManagerPrivate::handleCommandLineArgsW(int argc, wchar_t** argv)
copyUtf8ArgsToMembers(utf8Args);
}

NATRON_NAMESPACE_EXIT;
NATRON_NAMESPACE_EXIT
4 changes: 2 additions & 2 deletions Engine/AppManagerPrivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ GCC_DIAG_ON(deprecated)
#include "Engine/EngineFwd.h"
#include "Engine/TLSHolder.h"

NATRON_NAMESPACE_ENTER;
NATRON_NAMESPACE_ENTER

struct AppManagerPrivate
{
Expand Down Expand Up @@ -240,7 +240,7 @@ struct AppManagerPrivate
void copyUtf8ArgsToMembers(const std::vector<std::string>& utf8Args);
};

NATRON_NAMESPACE_EXIT;
NATRON_NAMESPACE_EXIT

#endif // Engine_AppManagerPrivate_h

6 changes: 3 additions & 3 deletions Engine/Backdrop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "Engine/Transform.h"
#include "Engine/KnobTypes.h"

NATRON_NAMESPACE_ENTER;
NATRON_NAMESPACE_ENTER

struct BackdropPrivate
{
Expand Down Expand Up @@ -91,7 +91,7 @@ Backdrop::knobChanged(KnobI* k,
return false;
}

NATRON_NAMESPACE_EXIT;
NATRON_NAMESPACE_EXIT

NATRON_NAMESPACE_USING;
NATRON_NAMESPACE_USING
#include "moc_Backdrop.cpp"
4 changes: 2 additions & 2 deletions Engine/Backdrop.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include "Engine/NoOpBase.h"
#include "Engine/EngineFwd.h"

NATRON_NAMESPACE_ENTER;
NATRON_NAMESPACE_ENTER

struct BackdropPrivate;

Expand Down Expand Up @@ -92,6 +92,6 @@ GCC_DIAG_SUGGEST_OVERRIDE_ON
boost::scoped_ptr<BackdropPrivate> _imp;
};

NATRON_NAMESPACE_EXIT;
NATRON_NAMESPACE_EXIT

#endif // BACKDROP_H
6 changes: 3 additions & 3 deletions Engine/Bezier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ GCC_DIAG_UNUSED_LOCAL_TYPEDEFS_ON
#endif


NATRON_NAMESPACE_ENTER;
NATRON_NAMESPACE_ENTER


static inline double
Expand Down Expand Up @@ -3687,7 +3687,7 @@ Bezier::expandToFeatherDistance(bool useGuiCurve,
return ret;
} // expandToFeatherDistance

NATRON_NAMESPACE_EXIT;
NATRON_NAMESPACE_EXIT

NATRON_NAMESPACE_USING;
NATRON_NAMESPACE_USING
#include "moc_Bezier.cpp"
4 changes: 2 additions & 2 deletions Engine/Bezier.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ CLANG_DIAG_ON(deprecated-declarations)

#define ROTO_BEZIER_EVAL_ITERATIVE

NATRON_NAMESPACE_ENTER;
NATRON_NAMESPACE_ENTER


/**
Expand Down Expand Up @@ -667,7 +667,7 @@ GCC_DIAG_SUGGEST_OVERRIDE_ON
boost::scoped_ptr<BezierPrivate> _imp;
};

NATRON_NAMESPACE_EXIT;
NATRON_NAMESPACE_EXIT


#endif // Engine_Bezier_h
4 changes: 2 additions & 2 deletions Engine/BezierCP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#include "Engine/Transform.h" // Point3D
#include "Engine/ViewIdx.h"

NATRON_NAMESPACE_ENTER;
NATRON_NAMESPACE_ENTER


////////////////////////////////////ControlPoint////////////////////////////////////
Expand Down Expand Up @@ -930,5 +930,5 @@ BezierCP::cloneGuiCurvesToInternalCurves()
_imp->rightY = _imp->guiRightY;
}

NATRON_NAMESPACE_EXIT;
NATRON_NAMESPACE_EXIT

4 changes: 2 additions & 2 deletions Engine/BezierCP.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#include "Engine/ViewIdx.h"
#include "Engine/EngineFwd.h"

NATRON_NAMESPACE_ENTER;
NATRON_NAMESPACE_ENTER

/**
* @class A Bezier is an animated control point of a Bezier. It is the starting point
Expand Down Expand Up @@ -179,6 +179,6 @@ class BezierCP

typedef std::list< boost::shared_ptr<BezierCP> > BezierCPs;

NATRON_NAMESPACE_EXIT;
NATRON_NAMESPACE_EXIT

#endif // Engine_BezierCP_h
4 changes: 2 additions & 2 deletions Engine/BezierCPPrivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#include "Engine/Curve.h"
#include "Engine/EngineFwd.h"

NATRON_NAMESPACE_ENTER;
NATRON_NAMESPACE_ENTER

struct BezierCPPrivate
{
Expand Down Expand Up @@ -89,6 +89,6 @@ struct BezierCPPrivate
}
};

NATRON_NAMESPACE_EXIT;
NATRON_NAMESPACE_EXIT

#endif // Engine_BezierCPPrivate_h_
4 changes: 2 additions & 2 deletions Engine/BezierCPSerialization.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ GCC_DIAG_ON(unused-parameter)
#define BEZIER_CP_REMOVE_OFFSET 4
#define BEZIER_CP_VERSION BEZIER_CP_REMOVE_OFFSET

NATRON_NAMESPACE_ENTER;
NATRON_NAMESPACE_ENTER

template<class Archive>
void
Expand Down Expand Up @@ -149,7 +149,7 @@ BezierCP::load(Archive & ar,
}
} // BezierCP::load

NATRON_NAMESPACE_EXIT;
NATRON_NAMESPACE_EXIT

BOOST_CLASS_VERSION(NATRON_NAMESPACE::BezierCP, BEZIER_CP_VERSION)

Expand Down
4 changes: 2 additions & 2 deletions Engine/BezierSerialization.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ GCC_DIAG_ON(unused-parameter)
#define BEZIER_SERIALIZATION_INTRODUCES_OPEN_BEZIER 4
#define BEZIER_SERIALIZATION_VERSION BEZIER_SERIALIZATION_INTRODUCES_OPEN_BEZIER

NATRON_NAMESPACE_ENTER;
NATRON_NAMESPACE_ENTER

class BezierSerialization
: public RotoDrawableItemSerialization
Expand Down Expand Up @@ -144,7 +144,7 @@ class BezierSerialization
};


NATRON_NAMESPACE_EXIT;
NATRON_NAMESPACE_EXIT

BOOST_CLASS_VERSION(NATRON_NAMESPACE::BezierSerialization, BEZIER_SERIALIZATION_VERSION)

Expand Down
4 changes: 2 additions & 2 deletions Engine/BlockingBackgroundRender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ CLANG_DIAG_ON(deprecated-register)
#include "Engine/OutputEffectInstance.h"
#include "Engine/Settings.h"

NATRON_NAMESPACE_ENTER;
NATRON_NAMESPACE_ENTER


BlockingBackgroundRender::BlockingBackgroundRender(OutputEffectInstance* writer)
Expand Down Expand Up @@ -78,4 +78,4 @@ BlockingBackgroundRender::notifyFinished()
_runningCond.wakeOne();
}

NATRON_NAMESPACE_EXIT;
NATRON_NAMESPACE_EXIT
4 changes: 2 additions & 2 deletions Engine/BlockingBackgroundRender.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

#include "Engine/EngineFwd.h"

NATRON_NAMESPACE_ENTER;
NATRON_NAMESPACE_ENTER

class BlockingBackgroundRender
{
Expand All @@ -59,6 +59,6 @@ class BlockingBackgroundRender
void blockingRender(bool enableRenderStats, int first, int last, int frameStep);
};

NATRON_NAMESPACE_EXIT;
NATRON_NAMESPACE_EXIT

#endif // BLOCKINGBACKGROUNDRENDER_H
4 changes: 2 additions & 2 deletions Engine/BufferableObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

#include <cstddef>

NATRON_NAMESPACE_ENTER;
NATRON_NAMESPACE_ENTER

/**
* @brief Stub class used by internal implementation of OutputSchedulerThread to pass objects through signal/slots
Expand Down Expand Up @@ -60,6 +60,6 @@ class BufferableObject

typedef std::list<boost::shared_ptr<BufferableObject> > BufferableObjectList;

NATRON_NAMESPACE_EXIT;
NATRON_NAMESPACE_EXIT

#endif // OUTPUTSCHEDULERTHREAD_H
4 changes: 2 additions & 2 deletions Engine/CLArgs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

#include "Engine/AppManager.h"

NATRON_NAMESPACE_ENTER;
NATRON_NAMESPACE_ENTER


struct CLArgsPrivate
Expand Down Expand Up @@ -1261,4 +1261,4 @@ CLArgs::ensureCommandLineArgsUtf8(int argc, char **argv, std::vector<std::string
#endif
}

NATRON_NAMESPACE_EXIT;
NATRON_NAMESPACE_EXIT
4 changes: 2 additions & 2 deletions Engine/CLArgs.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ CLANG_DIAG_ON(deprecated)
#endif
#include "Engine/EngineFwd.h"

NATRON_NAMESPACE_ENTER;
NATRON_NAMESPACE_ENTER

struct CLArgsPrivate;
class CLArgs //: boost::noncopyable // GCC 4.2 requires the copy constructor
Expand Down Expand Up @@ -150,7 +150,7 @@ class CLArgs //: boost::noncopyable // GCC 4.2 requires the copy constructor
boost::scoped_ptr<CLArgsPrivate> _imp;
};

NATRON_NAMESPACE_EXIT;
NATRON_NAMESPACE_EXIT

#endif // Engine_CLArgs_h

Loading

0 comments on commit 8b2b551

Please sign in to comment.