0023460: Update QT products samples
authorapn <apn@opencascade.com>
Tue, 18 Nov 2014 10:41:56 +0000 (13:41 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 28 Nov 2014 08:58:39 +0000 (11:58 +0300)
Rename all generation-vc-projects.bat (in OCCT) to genproj.bat.
Fixed warnings in VoxelDemo.

samples/qt/IESample/genproj.bat [moved from samples/qt/IESample/generation-vc-projects.bat with 100% similarity]
samples/qt/Tutorial/genproj.bat [moved from samples/qt/Tutorial/generation-vc-projects.bat with 100% similarity]
samples/qt/VoxelDemo/VoxelDemo.vcproj
samples/qt/VoxelDemo/src/Timer.cpp
samples/qt/VoxelDemo/src/VoxelClient_VisDrawer.cxx

index 1745563..68d7d2e 100644 (file)
@@ -48,7 +48,7 @@
                                RuntimeLibrary="3"
                                UsePrecompiledHeader="0"
                                WarningLevel="3"
-                               Detect64BitPortabilityProblems="true"
+                               Detect64BitPortabilityProblems="false"
                                DebugInformationFormat="4"
                        />
                        <Tool
                                RuntimeLibrary="2"
                                UsePrecompiledHeader="0"
                                WarningLevel="3"
-                               Detect64BitPortabilityProblems="true"
+                               Detect64BitPortabilityProblems="false"
                                DebugInformationFormat="3"
                        />
                        <Tool
index d8a3f3e..783b004 100644 (file)
@@ -12,7 +12,7 @@ Timer::Timer():myWriter(0) {}
 
 Timer::Timer(const char* filename)
 {
-       myWriter = fopen(filename, "a");
+       fopen_s(&myWriter,filename, "a");
 }
 
 Timer::~Timer()
index 15cfa91..79d2bb4 100644 (file)
@@ -323,7 +323,7 @@ static void setColor(const Quantity_Color& color, const Standard_Boolean highlig
 {
     static Quantity_Color highlight_color(Quantity_NOC_BLUE1);
                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
         glColor3d(color.Red(), color.Green(), color.Blue());
 }