Commit 44cb36ab authored by Dirk Wilden's avatar Dirk Wilden

removed warnings

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10612 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 345889f8
......@@ -119,7 +119,7 @@ class BackupInterface {
* @param _objectid Identifier of the object to restore
* @param _internalId The unique identifier of the restore set (-1 for last backup)
*/
virtual void restoreObject( int /*_objectid*/, int _internalId =-1) {};
virtual void restoreObject( int /*_objectid*/, int /*_internalId*/ =-1) {};
/** \brief Tell Backup Plugin to restore a backup group
*
......
......@@ -234,7 +234,6 @@ void setDataSeparatorNodes( SeparatorNode* _dataSeparatorNode ) {
if ( PluginFunctions::dataSeparatorNode_->nChildren() != 1 ){
std::cerr << "Only one child allowed for dataSeparatorNode on initialization!" << std::endl;
std::cerr << "The Core has initialized the scenegraph in a strange way!" << std::endl;
ACG::SceneGraph::BaseNode* child = *(PluginFunctions::dataSeparatorNode_->childrenBegin());
}
// Set the root node for the data objects
......@@ -697,7 +696,7 @@ void lookAt(const ACG::Vec3d& _eye, const ACG::Vec3d& _center, const ACG::Vec3d&
std::cerr << "Requested illegal viewer for viewingDirection!!" << std::endl;
}
const ACG::Vec3d trackBallCenter(const ACG::Vec3d& _center, int _viewer ) {
const ACG::Vec3d trackBallCenter( int _viewer ) {
if ( _viewer == ACTIVE_VIEWER ) {
return examiner_widgets_[activeExaminer_]->trackBallCenter();
} else if ( _viewer == ALL_VIEWERS )
......
......@@ -189,7 +189,7 @@ void setTrackBallCenter(const ACG::Vec3d& _center, int _viewer );
* 0..3 Choose viewer explicitly
*/
DLLEXPORT
const ACG::Vec3d trackBallCenter(const ACG::Vec3d& _center, int _viewer );
const ACG::Vec3d trackBallCenter( int _viewer );
/** \brief Set the scene position
*
......
......@@ -99,7 +99,7 @@ class StatusbarInterface {
/** \brief Add a widget on the right side of the statusBar
*
*/
void addWidgetToStatusbar(QWidget* _widget) {};
void addWidgetToStatusbar(QWidget* /*_widget*/) {};
};
......
......@@ -517,8 +517,6 @@ void Core::openIniFile( QString _filename,
// Parse File section for files to open
if ( ini.section_exists("OpenFiles") && ini.get_entry(openFiles,"OpenFiles","open") ) {
bool newActiveObject = false;
for ( int i = 0 ; i < openFiles.size(); ++i ) {
QString sectionName = openFiles[i];
......
......@@ -364,7 +364,7 @@ void Core::newObject(int _objectId) {
}
/// This slot is called by the object manager when a object is deleted
void Core::deletedObject(int _objectId) {
void Core::deletedObject(int /*_objectId*/) {
}
......
......@@ -711,7 +711,7 @@ void BaseObject::setName(QString _name ) {
// ===============================================================================
// Content
// ===============================================================================
void BaseObject::update(UpdateType _type) {
void BaseObject::update(UpdateType /*_type*/) {
}
void BaseObject::dumpTree() {
......
......@@ -415,7 +415,7 @@ DataType DataType::operator|( const DataType& _i ) const {
//===========================================
bool DataType::operator++(int _unused) {
bool DataType::operator++(int /*_unused*/) {
return (field *= 2);
}
......
......@@ -115,7 +115,7 @@ public:
@param _color color used for blending
@return should blending be berformed for this reference
*/
virtual bool blendForStencilRefNumber (GLuint _reference, GLenum &_src, GLenum &_dst, ACG::Vec4f &_color) { return false; };
virtual bool blendForStencilRefNumber (GLuint /*_reference*/, GLenum &/*_src*/, GLenum &/*_dst*/, ACG::Vec4f &/*_color*/) { return false; };
/** Per reference bit blending values
@param _refbit stencil reference bit for blending
......@@ -124,7 +124,7 @@ public:
@param _color color used for blending
@return should blending be berformed for this reference
*/
virtual bool blendForStencilRefBit (GLuint _refbit, GLenum &_src, GLenum &_dst, ACG::Vec4f &_color) { return false; };
virtual bool blendForStencilRefBit (GLuint /*_refbit*/, GLenum &/*_src*/, GLenum &/*_dst*/, ACG::Vec4f &/*_color*/) { return false; };
};
......
......@@ -155,9 +155,6 @@ Qt::ItemFlags TreeModelObjectSelection::flags(const QModelIndex &index) const
else
flags = Qt::ItemIsEnabled;
// Get the corresponding tree item
TreeItemObjectSelection *item = static_cast<TreeItemObjectSelection*>(index.internalPointer());
return flags;
}
......
......@@ -176,7 +176,7 @@ void ObjectPickDialog::activated(const QModelIndex & _index)
//------------------------------------------------------------------------------
void ObjectPickDialog::slotMouseEventClick(QMouseEvent * _event, bool _double)
void ObjectPickDialog::slotMouseEventClick(QMouseEvent * _event, bool /*_double*/)
{
unsigned int nodeIdx, targetIdx;
......
......@@ -60,7 +60,7 @@
//=============================================================================
/// Constructor
ObjectSelectionWidget::ObjectSelectionWidget(QMap< QString, QString > &_hints, QString _typeName, QWidget *_parent) :
ObjectSelectionWidget::ObjectSelectionWidget(QMap< QString, QString > &_hints, QString /*_typeName*/, QWidget */*_parent*/) :
QWidget(0),
pickButton_ (0),
combo_ (0)
......
......@@ -122,8 +122,6 @@ void PluginDialog::slotUnload()
{
int buttonState = QMessageBox::No;
bool yesToAll = false;
for (int i=0; i < list->selectedItems().size(); i++){
QString name = plugins_[ list->row( list->selectedItems()[i] ) ].rpcName;
......
......@@ -65,7 +65,7 @@ void ColorStatusBar::showMessage(const QString & message, QColor _color, int tim
QStatusBar::showMessage(message, timeout);
}
void ColorStatusBar::slotMessageChanged(const QString & message)
void ColorStatusBar::slotMessageChanged(const QString & /*message*/)
{
if ( !colored_ ){
......
......@@ -64,6 +64,7 @@
class QtGraphicsButton : public QObject, public QGraphicsItem
{
Q_OBJECT
Q_INTERFACES(QGraphicsItem)
public:
......
......@@ -155,7 +155,7 @@ void QtPickToolbar::paintWindowFrame(QPainter *_painter,
//-----------------------------------------------------------------------------
Qt::WindowFrameSection QtPickToolbar::windowFrameSectionAt(const QPointF &_pos) const
Qt::WindowFrameSection QtPickToolbar::windowFrameSectionAt(const QPointF &/*_pos*/) const
{
return Qt::NoSection;
}
......
......@@ -292,7 +292,7 @@ void LoggerWidget::updateList(){
}
//-------------------------------------------------------------------------------------
void LoggerWidget::showEvent ( QShowEvent * event ) {
void LoggerWidget::showEvent ( QShowEvent * /*event*/ ) {
list_->scrollToBottom();
}
......@@ -318,9 +318,6 @@ void LoggerWidget::contextMenuEvent ( QContextMenuEvent * event ){
QPoint p = list_->mapToGlobal( list_->pos() );
int x = event->globalX();
int y = event->y() + p.y();
context_->popup( event->globalPos() );
}
......
......@@ -68,7 +68,7 @@ viewModeChangeWidget::viewModeChangeWidget(const QVector< ViewMode* >& _modes, Q
// =======================================================================================================
/// Slot for changing View and closing widget
void viewModeChangeWidget::slotModeClicked(QModelIndex _idx ){
void viewModeChangeWidget::slotModeClicked(QModelIndex /*_idx*/ ){
// Search for current mode
int id = -1;
......
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