mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-22 19:09:42 +00:00
Merge pull request #2917 from akortunov/warnfix
Fix issues, reported by CoverityScan
This commit is contained in:
commit
8d9b2eca7d
5 changed files with 13 additions and 2 deletions
|
@ -36,6 +36,7 @@ namespace MWInput
|
|||
, mSneakToggleShortcutTimer(0.f)
|
||||
, mGamepadZoom(0)
|
||||
, mGamepadGuiCursorEnabled(true)
|
||||
, mGuiCursorEnabled(true)
|
||||
, mJoystickLastUsed(false)
|
||||
, mSneakGamepadShortcut(false)
|
||||
, mGamepadPreviewMode(false)
|
||||
|
|
|
@ -80,7 +80,7 @@ namespace MWRender
|
|||
class RefnumMarker : public osg::Object
|
||||
{
|
||||
public:
|
||||
RefnumMarker() : mNumVertices(0) {}
|
||||
RefnumMarker() : mNumVertices(0) { mRefnum.unset(); }
|
||||
RefnumMarker(const RefnumMarker ©, osg::CopyOp co) : mRefnum(copy.mRefnum), mNumVertices(copy.mNumVertices) {}
|
||||
META_Object(MWRender, RefnumMarker)
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ namespace
|
|||
{
|
||||
ESM::GlobalScript script;
|
||||
script.mTargetRef.unset();
|
||||
script.mRunning = false;
|
||||
if (!ptr.isEmpty())
|
||||
{
|
||||
if (ptr.getCellRef().hasContentFile())
|
||||
|
@ -42,6 +43,7 @@ namespace
|
|||
ESM::GlobalScript script;
|
||||
script.mTargetId = pair.second;
|
||||
script.mTargetRef = pair.first;
|
||||
script.mRunning = false;
|
||||
return script;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -165,7 +165,14 @@ namespace Gui
|
|||
|
||||
FontLoader::~FontLoader()
|
||||
{
|
||||
MyGUI::ResourceManager::getInstance().unregisterLoadXmlDelegate("Resource");
|
||||
try
|
||||
{
|
||||
MyGUI::ResourceManager::getInstance().unregisterLoadXmlDelegate("Resource");
|
||||
}
|
||||
catch(const MyGUI::Exception& e)
|
||||
{
|
||||
Log(Debug::Error) << "Error in the FontLoader destructor: " << e.what();
|
||||
}
|
||||
|
||||
for (std::vector<MyGUI::ITexture*>::iterator it = mTextures.begin(); it != mTextures.end(); ++it)
|
||||
delete *it;
|
||||
|
|
|
@ -28,6 +28,7 @@ ChunkManager::ChunkManager(Storage *storage, Resource::SceneManager *sceneMgr, T
|
|||
, mSceneManager(sceneMgr)
|
||||
, mTextureManager(textureManager)
|
||||
, mCompositeMapRenderer(renderer)
|
||||
, mNodeMask(0)
|
||||
, mCompositeMapSize(512)
|
||||
, mCompositeMapLevel(1.f)
|
||||
, mMaxCompGeometrySize(1.f)
|
||||
|
|
Loading…
Reference in a new issue