mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-04 08:45:34 +00:00
Merge pull request #2030 from akortunov/warnfix
Fix some compiler warnings
This commit is contained in:
commit
3751bc2c11
4 changed files with 9 additions and 8 deletions
|
@ -520,7 +520,6 @@ std::pair<float, float> CSMWorld::ConstInfoSelectWrapper::getConditionFloatRange
|
|||
const float FloatMax = std::numeric_limits<float>::infinity();
|
||||
const float FloatMin = -std::numeric_limits<float>::infinity();
|
||||
const float Epsilon = std::numeric_limits<float>::epsilon();
|
||||
const std::pair<float, float> InvalidRange(FloatMax, FloatMin);
|
||||
|
||||
float value = mConstSelect.mValue.getFloat();
|
||||
|
||||
|
|
|
@ -31,12 +31,14 @@ void Wizard::ExistingInstallationPage::initializePage()
|
|||
// Hide the default item if there are installations to choose from
|
||||
installationsList->item(0)->setHidden(!paths.isEmpty());
|
||||
|
||||
foreach (const QString &path, paths) {
|
||||
QListWidgetItem *item = new QListWidgetItem(path);
|
||||
|
||||
foreach (const QString &path, paths)
|
||||
{
|
||||
if (installationsList->findItems(path, Qt::MatchExactly).isEmpty())
|
||||
{
|
||||
QListWidgetItem *item = new QListWidgetItem(path);
|
||||
installationsList->addItem(item);
|
||||
}
|
||||
}
|
||||
|
||||
connect(installationsList, SIGNAL(currentTextChanged(QString)),
|
||||
this, SLOT(textChanged(QString)));
|
||||
|
|
|
@ -168,7 +168,7 @@ QVariant ContentSelectorModel::ContentModel::data(const QModelIndex &index, int
|
|||
case Qt::DisplayRole:
|
||||
{
|
||||
if (column >=0 && column <=EsmFile::FileProperty_GameFile)
|
||||
return file->fileProperty(static_cast<const EsmFile::FileProperty>(column));
|
||||
return file->fileProperty(static_cast<EsmFile::FileProperty>(column));
|
||||
|
||||
return QVariant();
|
||||
}
|
||||
|
|
|
@ -134,9 +134,9 @@ public:
|
|||
{
|
||||
state->bindVertexBufferObject(bufferobject);
|
||||
|
||||
glVertexPointer(3, GL_FLOAT, sizeof(MyGUI::Vertex), (char*)nullptr);
|
||||
glColorPointer(4, GL_UNSIGNED_BYTE, sizeof(MyGUI::Vertex), (char*)nullptr + 12);
|
||||
glTexCoordPointer(2, GL_FLOAT, sizeof(MyGUI::Vertex), (char*)nullptr + 16);
|
||||
glVertexPointer(3, GL_FLOAT, sizeof(MyGUI::Vertex), static_cast<char*>(0));
|
||||
glColorPointer(4, GL_UNSIGNED_BYTE, sizeof(MyGUI::Vertex), static_cast<char*>(0) + 12);
|
||||
glTexCoordPointer(2, GL_FLOAT, sizeof(MyGUI::Vertex), static_cast<char*>(0) + 16);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue