Commit 2947e1f9 authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed cppcheck warnings



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@14750 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 8a38b442
......@@ -293,7 +293,7 @@ bool FilePTSPlugin::readTextFile( const char *_filename, SplatCloud &_splatCloud
// read point
{
float pnt[3];
if( fscanf( file, "%f%f%f", &pnt[0], &pnt[1], &pnt[2] ) != 3 )
if( fscanf( file, "%16f %16f %16f", &pnt[0], &pnt[1], &pnt[2] ) != 3 )
break;
SplatCloud::Point point;
......@@ -308,7 +308,7 @@ bool FilePTSPlugin::readTextFile( const char *_filename, SplatCloud &_splatCloud
if( loadColors )
{
float col[3];
fscanf( file, "%f%f%f", &col[0], &col[1], &col[2] );
fscanf( file, "%16f %16f %16f", &col[0], &col[1], &col[2] );
SplatCloud::Color color;
......@@ -332,7 +332,7 @@ bool FilePTSPlugin::readTextFile( const char *_filename, SplatCloud &_splatCloud
if( loadNormals )
{
float nrm[3];
fscanf( file, "%f%f%f", &nrm[0], &nrm[1], &nrm[2] );
fscanf( file, "%16f %16f %16f", &nrm[0], &nrm[1], &nrm[2] );
SplatCloud::Normal normal;
normal[0] = nrm[0];
......@@ -346,7 +346,7 @@ bool FilePTSPlugin::readTextFile( const char *_filename, SplatCloud &_splatCloud
if( loadPointsizes )
{
float ps = 0.0f;
fscanf( file, "%f", &ps );
fscanf( file, "%16f", &ps );
SplatCloud::Pointsize pointsize;
pointsize = ps;
......@@ -358,7 +358,7 @@ bool FilePTSPlugin::readTextFile( const char *_filename, SplatCloud &_splatCloud
if( loadIndices )
{
int idx = -1;
fscanf( file, "%i", &idx );
fscanf( file, "%16i", &idx );
SplatCloud::Index index;
index = idx;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment