Fix warnings

This commit is contained in:
wmayer 2013-09-09 15:01:56 +02:00
parent d79290fc13
commit ca51781aa9
5 changed files with 5 additions and 9 deletions

View File

@ -377,10 +377,6 @@
</layout>
</item>
</layout>
<zorder>groupBox2</zorder>
<zorder>groupBox3</zorder>
<zorder>groupBox1</zorder>
<zorder></zorder>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>

View File

@ -13,7 +13,7 @@
<property name="windowTitle">
<string>3D View</string>
</property>
<layout class="QGridLayout">
<layout class="QGridLayout" name="gridLayout3">
<property name="margin">
<number>11</number>
</property>
@ -367,7 +367,7 @@
<property name="title">
<string>Camera type</string>
</property>
<layout class="QGridLayout">
<layout class="QGridLayout" name="gridLayout1">
<property name="margin">
<number>11</number>
</property>

View File

@ -19,7 +19,7 @@
<property name="title">
<string>General</string>
</property>
<layout class="QGridLayout">
<layout class="QGridLayout" name="gridLayout_4">
<property name="margin">
<number>9</number>
</property>

View File

@ -369,7 +369,7 @@ bool MeshInput::LoadSTL (std::istream &rstrIn)
if (ulCt > 1)
ulBytes = 100;
// Either it's really an invalid STL file or it's just empty. In this case the number of facets must be 0.
if (rstrIn.read(szBuf, ulBytes) == false)
if (!rstrIn.read(szBuf, ulBytes))
return (ulCt==0);
szBuf[ulBytes] = 0;
upper(szBuf);

View File

@ -19,7 +19,7 @@
<property name="title">
<string>Export</string>
</property>
<layout class="QGridLayout">
<layout class="QGridLayout" name="gridLayout_1">
<property name="margin">
<number>9</number>
</property>