1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-21 10:13:43 +03:00

0023460: Update QT products samples

Rename all generation-vc-projects.bat (in OCCT) to genproj.bat.
Fixed warnings in VoxelDemo.
This commit is contained in:
apn 2014-11-18 13:41:56 +03:00 committed by bugmaster
parent 0059facbbf
commit ee0a5d2528
5 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@
RuntimeLibrary="3" RuntimeLibrary="3"
UsePrecompiledHeader="0" UsePrecompiledHeader="0"
WarningLevel="3" WarningLevel="3"
Detect64BitPortabilityProblems="true" Detect64BitPortabilityProblems="false"
DebugInformationFormat="4" DebugInformationFormat="4"
/> />
<Tool <Tool
@ -123,7 +123,7 @@
RuntimeLibrary="2" RuntimeLibrary="2"
UsePrecompiledHeader="0" UsePrecompiledHeader="0"
WarningLevel="3" WarningLevel="3"
Detect64BitPortabilityProblems="true" Detect64BitPortabilityProblems="false"
DebugInformationFormat="3" DebugInformationFormat="3"
/> />
<Tool <Tool

View File

@ -12,7 +12,7 @@ Timer::Timer():myWriter(0) {}
Timer::Timer(const char* filename) Timer::Timer(const char* filename)
{ {
myWriter = fopen(filename, "a"); fopen_s(&myWriter,filename, "a");
} }
Timer::~Timer() Timer::~Timer()

View File

@ -323,7 +323,7 @@ static void setColor(const Quantity_Color& color, const Standard_Boolean highlig
{ {
static Quantity_Color highlight_color(Quantity_NOC_BLUE1); static Quantity_Color highlight_color(Quantity_NOC_BLUE1);
if(highlight) if(highlight)
glColor3f(highlight_color.Red(), highlight_color.Green(), highlight_color.Blue()); glColor3f((GLfloat)highlight_color.Red(), (GLfloat)highlight_color.Green(), (GLfloat)highlight_color.Blue());
else else
glColor3d(color.Red(), color.Green(), color.Blue()); glColor3d(color.Red(), color.Green(), color.Blue());
} }