forked from teamnwah/openmw-tes3coop
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
9603325b99
6 changed files with 31 additions and 28 deletions
|
@ -19,7 +19,7 @@ addons:
|
|||
description: "<Your project description here>"
|
||||
notification_email: scrawl@baseoftrash.de
|
||||
build_command_prepend: "cmake ."
|
||||
build_command: "make -j4"
|
||||
build_command: "make -j3"
|
||||
branch_pattern: coverity_scan
|
||||
|
||||
before_install:
|
||||
|
|
|
@ -77,7 +77,8 @@ CS::Editor::~Editor ()
|
|||
mPidFile.close();
|
||||
|
||||
if(mServer && boost::filesystem::exists(mPid))
|
||||
remove(mPid.string().c_str()); // ignore any error
|
||||
static_cast<void> ( // silence coverity warning
|
||||
remove(mPid.string().c_str())); // ignore any error
|
||||
|
||||
// cleanup global resources used by OEngine
|
||||
delete OEngine::Physic::BulletShapeManager::getSingletonPtr();
|
||||
|
|
|
@ -27,7 +27,7 @@ bool CSMFilter::ValueNode::test (const CSMWorld::IdTableBase& table, int row,
|
|||
QVariant data = table.data (index);
|
||||
|
||||
if (data.type()!=QVariant::Double && data.type()!=QVariant::Bool && data.type()!=QVariant::Int &&
|
||||
data.type()!=QVariant::UInt && data.type()!=static_cast<QVariant::Type> (QMetaType::Float))
|
||||
data.type()!=QVariant::UInt)
|
||||
return false;
|
||||
|
||||
double value = data.toDouble();
|
||||
|
|
|
@ -35,7 +35,8 @@ void CSVRender::Object::clear()
|
|||
{
|
||||
mObject.setNull();
|
||||
|
||||
clearSceneNode (mBase);
|
||||
if (mBase)
|
||||
clearSceneNode (mBase);
|
||||
}
|
||||
|
||||
void CSVRender::Object::update()
|
||||
|
@ -156,11 +157,13 @@ CSVRender::Object::~Object()
|
|||
{
|
||||
clear();
|
||||
|
||||
if(mPhysics) // preview may not have physics enabled
|
||||
mPhysics->removeObject(mBase->getName());
|
||||
|
||||
if (mBase)
|
||||
{
|
||||
if(mPhysics) // preview may not have physics enabled
|
||||
mPhysics->removeObject(mBase->getName());
|
||||
|
||||
mBase->getCreator()->destroySceneNode (mBase);
|
||||
}
|
||||
}
|
||||
|
||||
bool CSVRender::Object::referenceableDataChanged (const QModelIndex& topLeft,
|
||||
|
|
|
@ -138,17 +138,19 @@ bool CSVWorld::TableSubView::eventFilter (QObject* object, QEvent* event)
|
|||
{
|
||||
if (event->type() == QEvent::Drop)
|
||||
{
|
||||
QDropEvent* drop = dynamic_cast<QDropEvent*>(event);
|
||||
const CSMWorld::TableMimeData* data = dynamic_cast<const CSMWorld::TableMimeData*>(drop->mimeData());
|
||||
if (!data) // May happen when non-records (e.g. plain text) are dragged and dropped
|
||||
return false;
|
||||
|
||||
bool handled = data->holdsType(CSMWorld::UniversalId::Type_Filter);
|
||||
if (handled)
|
||||
if (QDropEvent* drop = dynamic_cast<QDropEvent*>(event))
|
||||
{
|
||||
mFilterBox->setRecordFilter(data->returnMatching(CSMWorld::UniversalId::Type_Filter).getId());
|
||||
const CSMWorld::TableMimeData* data = dynamic_cast<const CSMWorld::TableMimeData*>(drop->mimeData());
|
||||
if (!data) // May happen when non-records (e.g. plain text) are dragged and dropped
|
||||
return false;
|
||||
|
||||
bool handled = data->holdsType(CSMWorld::UniversalId::Type_Filter);
|
||||
if (handled)
|
||||
{
|
||||
mFilterBox->setRecordFilter(data->returnMatching(CSMWorld::UniversalId::Type_Filter).getId());
|
||||
}
|
||||
return handled;
|
||||
}
|
||||
return handled;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -387,10 +387,9 @@ namespace Compiler
|
|||
if (get (c))
|
||||
{
|
||||
/// \todo hack to allow a space in comparison operators (add option to disable)
|
||||
if (c==' ')
|
||||
get (c);
|
||||
|
||||
if (c=='=')
|
||||
if (c==' ' && !get (c))
|
||||
special = S_cmpEQ;
|
||||
else if (c=='=')
|
||||
special = S_cmpEQ;
|
||||
else
|
||||
{
|
||||
|
@ -471,10 +470,9 @@ namespace Compiler
|
|||
if (get (c))
|
||||
{
|
||||
/// \todo hack to allow a space in comparison operators (add option to disable)
|
||||
if (c==' ')
|
||||
get (c);
|
||||
|
||||
if (c=='=')
|
||||
if (c==' ' && !get (c))
|
||||
special = S_cmpLT;
|
||||
else if (c=='=')
|
||||
{
|
||||
special = S_cmpLE;
|
||||
|
||||
|
@ -495,10 +493,9 @@ namespace Compiler
|
|||
if (get (c))
|
||||
{
|
||||
/// \todo hack to allow a space in comparison operators (add option to disable)
|
||||
if (c==' ')
|
||||
get (c);
|
||||
|
||||
if (c=='=')
|
||||
if (c==' ' && !get (c))
|
||||
special = S_cmpGT;
|
||||
else if (c=='=')
|
||||
{
|
||||
special = S_cmpGE;
|
||||
|
||||
|
|
Loading…
Reference in a new issue