Commit a1ec8123 authored by Mario Hlawitschka's avatar Mario Hlawitschka
Browse files

[STYLE] fixed style to avoid some warnings

parent 98a405ed
......@@ -158,7 +158,8 @@ void WReaderVTK::readStructuredPoints()
new WGridRegular3D( dimensions[ 0 ], dimensions[ 1 ], dimensions[ 2 ], transform ) );
}
void WReaderVTK::readScalars( size_t nbPoints, const std::string& name )
// we currently do not handle the name flag but should set the name of the data set somewhere
void WReaderVTK::readScalars( size_t nbPoints, const std::string& /*name*/ )
{
int pos = m_ifs->tellg(); // remember where we are for binary files
......@@ -211,7 +212,7 @@ void WReaderVTK::readScalars( size_t nbPoints, const std::string& name )
// WAssert( std::string( "" ) == line, "Found characters in file where nothing was expected." );
}
void WReaderVTK::readVectors( size_t nbPoints, const std::string& name )
void WReaderVTK::readVectors( size_t nbPoints, const std::string& /*name*/ )
{
int pos = m_ifs->tellg(); // remember where we are for binary files
......@@ -269,7 +270,7 @@ void WReaderVTK::readVectors( size_t nbPoints, const std::string& name )
// WAssert( std::string( "" ) == line, "Found characters in file where nothing was expected." );
}
void WReaderVTK::readTensors( size_t nbPoints, const std::string& name )
void WReaderVTK::readTensors( size_t nbPoints, const std::string& /*name*/ )
{
int pos = m_ifs->tellg(); // remember where we are for binary files
......
......@@ -398,11 +398,11 @@
unsigned char* data = new unsigned char[ tfsize ];
std::copy( orig, &orig[ tfsize ], data );
for ( int i = 0; i< 30 && i < tfsize/4; ++i )
{
debugLog() << i << ":" << ( int )data[ 4*i ] << ' ' << ( int )data[ 4*i+1 ] << ' '<< ( int )data[ 4*i+2 ]
<< ' '<< ( int ) data[ 4*i+3 ];
}
// for ( size_t i = 0; i< 30 && i < tfsize/4; ++i )
// {
// debugLog() << i << ":" << ( int )data[ 4*i ] << ' ' << ( int )data[ 4*i+1 ] << ' '<< ( int )data[ 4*i+2 ]
// << ' '<< ( int ) data[ 4*i+3 ];
// }
osg::ref_ptr< osg::Image > tfImg( new osg::Image() );
//debugLog() << "set image";
......
......@@ -31,7 +31,7 @@
#include "WTransferFunctionBackground.h"
#include "WTransferFunctionWidget.h"
WTransferFunctionBackground::WTransferFunctionBackground( WTransferFunctionWidget *parent ) : BaseClass()
WTransferFunctionBackground::WTransferFunctionBackground( WTransferFunctionWidget * /*parent*/ ) : BaseClass()
{
//this->setFlag( ItemIsMovable );
setOpacity( 1.0 );
......
Markdown is supported
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