mirror of https://github.com/CGAL/cgal
Remove a few "warning: extra ';'" with g++ -pedantic.
This commit is contained in:
parent
19a5490ea4
commit
5fda817f95
|
|
@ -206,7 +206,7 @@ typedef struct imformat {
|
||||||
char realName[IMAGE_FORMAT_NAME_LENGTH];
|
char realName[IMAGE_FORMAT_NAME_LENGTH];
|
||||||
/* pointer towards the next image format*/
|
/* pointer towards the next image format*/
|
||||||
struct imformat *next;
|
struct imformat *next;
|
||||||
} IMAGE_FORMAT, *PTRIMAGE_FORMAT;;
|
} IMAGE_FORMAT, *PTRIMAGE_FORMAT;
|
||||||
|
|
||||||
/** Image descriptor */
|
/** Image descriptor */
|
||||||
typedef struct point_image {
|
typedef struct point_image {
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
// macros for defining namespace
|
// macros for defining namespace
|
||||||
#define CORE_BEGIN_NAMESPACE namespace CORE {
|
#define CORE_BEGIN_NAMESPACE namespace CORE {
|
||||||
#define CORE_END_NAMESPACE };
|
#define CORE_END_NAMESPACE }
|
||||||
|
|
||||||
// condition preprocessor for inline function
|
// condition preprocessor for inline function
|
||||||
#ifndef CORE_DISABLE_INLINE
|
#ifndef CORE_DISABLE_INLINE
|
||||||
|
|
|
||||||
|
|
@ -104,4 +104,5 @@ void MemoryPool< T, nObjects >::free(void* t) {
|
||||||
}
|
}
|
||||||
|
|
||||||
CORE_END_NAMESPACE
|
CORE_END_NAMESPACE
|
||||||
|
|
||||||
#endif // _CORE_MEMORYPOOL_H_
|
#endif // _CORE_MEMORYPOOL_H_
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ public:
|
||||||
Position = 0x2,
|
Position = 0x2,
|
||||||
State = 0x4};
|
State = 0x4};
|
||||||
|
|
||||||
Q_DECLARE_FLAGS(Options, Option);
|
Q_DECLARE_FLAGS(Options, Option)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
unsigned int maxNumberOfRecentFiles() const ;
|
unsigned int maxNumberOfRecentFiles() const ;
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,7 @@ public:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CGAL_KINETIC_LISTENER1(CURRENT_TIME);
|
CGAL_KINETIC_LISTENER1(CURRENT_TIME)
|
||||||
public:
|
public:
|
||||||
//! get the simulator
|
//! get the simulator
|
||||||
typename Simulator::Handle& simulator() {
|
typename Simulator::Handle& simulator() {
|
||||||
|
|
@ -168,7 +168,7 @@ protected:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
CGAL_KINETIC_LISTEN1(Timer, TICKS, timer_rang());
|
CGAL_KINETIC_LISTEN1(Timer, TICKS, timer_rang())
|
||||||
/*class Timer_listener: public Timer::Listener
|
/*class Timer_listener: public Timer::Listener
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
@ -328,5 +328,5 @@ protected:
|
||||||
//Listener *drawable_;
|
//Listener *drawable_;
|
||||||
bool processing_;
|
bool processing_;
|
||||||
};
|
};
|
||||||
CGAL_KINETIC_END_NAMESPACE;
|
CGAL_KINETIC_END_NAMESPACE
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ namespace CGAL
|
||||||
|
|
||||||
Qt_core();
|
Qt_core();
|
||||||
|
|
||||||
CGAL_KINETIC_LISTENERNT1(LAST_BUTTON_PRESSED);
|
CGAL_KINETIC_LISTENERNT1(LAST_BUTTON_PRESSED)
|
||||||
public:
|
public:
|
||||||
|
|
||||||
/*class Listener
|
/*class Listener
|
||||||
|
|
@ -143,7 +143,7 @@ namespace CGAL
|
||||||
typename Base::Handle t_;
|
typename Base::Handle t_;
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
}
|
||||||
};
|
}
|
||||||
};
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ namespace CGAL
|
||||||
class Qt_timer: public QObject, public Non_ref_counted<Qt_timer>
|
class Qt_timer: public QObject, public Non_ref_counted<Qt_timer>
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
CGAL_KINETIC_LISTENERNT1(TICKS);
|
CGAL_KINETIC_LISTENERNT1(TICKS)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Qt_timer();
|
Qt_timer();
|
||||||
|
|
@ -46,7 +46,7 @@ namespace CGAL
|
||||||
//CGAL_precondition(id_!=-1);
|
//CGAL_precondition(id_!=-1);
|
||||||
if (id_!= -1) timer_.killTimer(id_);
|
if (id_!= -1) timer_.killTimer(id_);
|
||||||
id_=-1;
|
id_=-1;
|
||||||
};
|
}
|
||||||
void run(double time_in_seconds);
|
void run(double time_in_seconds);
|
||||||
protected:
|
protected:
|
||||||
QTimer timer_;
|
QTimer timer_;
|
||||||
|
|
@ -57,7 +57,7 @@ namespace CGAL
|
||||||
private slots:
|
private slots:
|
||||||
void timerDone();
|
void timerDone();
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
};
|
}
|
||||||
};
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,7 @@ namespace CGAL
|
||||||
Qt_widget_2_core *widget_;
|
Qt_widget_2_core *widget_;
|
||||||
Qt_core core_;
|
Qt_core core_;
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
};
|
}
|
||||||
};
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
#ifndef CGAL_LABEL_H_
|
#ifndef CGAL_LABEL_H_
|
||||||
#define CGAL_LABEL_H_
|
#define CGAL_LABEL_H_
|
||||||
|
|
||||||
#include <CGAL/basic.h>
|
#include <CGAL/basic.h>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
@ -75,8 +76,8 @@ public:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
CGAL_OUTPUT1(Label);
|
CGAL_OUTPUT1(Label)
|
||||||
|
|
||||||
|
|
||||||
CGAL_END_NAMESPACE
|
CGAL_END_NAMESPACE
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -370,7 +370,7 @@ template <class A, class B> \
|
||||||
typedef name<Tr> T; \
|
typedef name<Tr> T; \
|
||||||
CGAL_HAS_INFINITY_BODY; \
|
CGAL_HAS_INFINITY_BODY; \
|
||||||
}; \
|
}; \
|
||||||
};
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -396,7 +396,7 @@ template <class A, class B> \
|
||||||
typedef name<Tr, Ur> T; \
|
typedef name<Tr, Ur> T; \
|
||||||
CGAL_HAS_INFINITY_BODY; \
|
CGAL_HAS_INFINITY_BODY; \
|
||||||
}; \
|
}; \
|
||||||
};
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ void Qt_core::play_button() {
|
||||||
CGAL_LOG(Log::SOME, "Play button pushed.\n");
|
CGAL_LOG(Log::SOME, "Play button pushed.\n");
|
||||||
mode_=RUN;
|
mode_=RUN;
|
||||||
CGAL_KINETIC_NOTIFY(LAST_BUTTON_PRESSED);
|
CGAL_KINETIC_NOTIFY(LAST_BUTTON_PRESSED);
|
||||||
};
|
}
|
||||||
|
|
||||||
void Qt_core::pause_button() {
|
void Qt_core::pause_button() {
|
||||||
CGAL_LOG(Log::SOME, "Pause button pushed.\n");
|
CGAL_LOG(Log::SOME, "Pause button pushed.\n");
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@ namespace CGAL {
|
||||||
}
|
}
|
||||||
}; // end Simple_map_container
|
}; // end Simple_map_container
|
||||||
|
|
||||||
}; // end namespace Mesh_3
|
} // end namespace Mesh_3
|
||||||
}; // end namespace CGAL
|
} // end namespace CGAL
|
||||||
|
|
||||||
#endif // CGAL_MESHES_SIMPLE_MAP_CONTAINER_H
|
#endif // CGAL_MESHES_SIMPLE_MAP_CONTAINER_H
|
||||||
|
|
|
||||||
|
|
@ -137,6 +137,6 @@ struct Triangulation_mesher_level_traits_3 :
|
||||||
|
|
||||||
}; // end Triangulation_mesher_level_traits_3
|
}; // end Triangulation_mesher_level_traits_3
|
||||||
|
|
||||||
}; // end namespace CGAL
|
} // end namespace CGAL
|
||||||
|
|
||||||
#endif // CGAL_MESH_2_TRIANGULATION_MESHER_LEVEL_TRAITS_3_H
|
#endif // CGAL_MESH_2_TRIANGULATION_MESHER_LEVEL_TRAITS_3_H
|
||||||
|
|
|
||||||
|
|
@ -1134,10 +1134,10 @@ struct Coercion_traits< Lazy_exact_nt<ET1>, Lazy_exact_nt<ET2> >
|
||||||
:public Coercion_traits<NTX, Lazy_exact_nt<ET> >{}; \
|
:public Coercion_traits<NTX, Lazy_exact_nt<ET> >{}; \
|
||||||
|
|
||||||
|
|
||||||
CGAL_COERCION_TRAITS_LAZY_EXACT(int);
|
CGAL_COERCION_TRAITS_LAZY_EXACT(int)
|
||||||
CGAL_COERCION_TRAITS_LAZY_EXACT(short);
|
CGAL_COERCION_TRAITS_LAZY_EXACT(short)
|
||||||
CGAL_COERCION_TRAITS_LAZY_EXACT(double);
|
CGAL_COERCION_TRAITS_LAZY_EXACT(double)
|
||||||
CGAL_COERCION_TRAITS_LAZY_EXACT(float);
|
CGAL_COERCION_TRAITS_LAZY_EXACT(float)
|
||||||
#undef CGAL_COERCION_TRAITS_LAZY_EXACT
|
#undef CGAL_COERCION_TRAITS_LAZY_EXACT
|
||||||
|
|
||||||
namespace INTERN_LAZY_EXACT_NT {
|
namespace INTERN_LAZY_EXACT_NT {
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,7 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
CGAL_SWAP(Atom);
|
CGAL_SWAP(Atom)
|
||||||
|
|
||||||
/*inline bool Atom::operator<(const Atom &o) const {
|
/*inline bool Atom::operator<(const Atom &o) const {
|
||||||
if (index_ < o.index_) return true;
|
if (index_ < o.index_) return true;
|
||||||
|
|
|
||||||
|
|
@ -357,8 +357,8 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
CGAL_SWAP(Chain);
|
CGAL_SWAP(Chain)
|
||||||
CGAL_OUTPUT(Chain);
|
CGAL_OUTPUT(Chain)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -161,8 +161,8 @@ inline int index_atoms(const Heterogen &m, int start=0) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
CGAL_SWAP(Heterogen);
|
CGAL_SWAP(Heterogen)
|
||||||
CGAL_OUTPUT(Heterogen);
|
CGAL_OUTPUT(Heterogen)
|
||||||
|
|
||||||
}}
|
}}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -308,9 +308,9 @@ private:
|
||||||
HeterogensMap heterogens_;
|
HeterogensMap heterogens_;
|
||||||
};
|
};
|
||||||
|
|
||||||
CGAL_SWAP(Model);
|
CGAL_SWAP(Model)
|
||||||
|
|
||||||
CGAL_OUTPUT(Model);
|
CGAL_OUTPUT(Model)
|
||||||
|
|
||||||
//! Assign unique indices to all atoms in the Model, starting at optional start value
|
//! Assign unique indices to all atoms in the Model, starting at optional start value
|
||||||
/*!
|
/*!
|
||||||
|
|
|
||||||
|
|
@ -296,8 +296,8 @@ inline int index_atoms(const Monomer &m, int start=0) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
CGAL_SWAP(Monomer);
|
CGAL_SWAP(Monomer)
|
||||||
CGAL_OUTPUT(Monomer);
|
CGAL_OUTPUT(Monomer)
|
||||||
|
|
||||||
}}
|
}}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -185,9 +185,9 @@ inline int index_atoms(const PDB &c, int start=0) {
|
||||||
return start;
|
return start;
|
||||||
}
|
}
|
||||||
|
|
||||||
CGAL_OUTPUT(PDB);
|
CGAL_OUTPUT(PDB)
|
||||||
|
|
||||||
CGAL_SWAP(PDB);
|
CGAL_SWAP(PDB)
|
||||||
|
|
||||||
}}
|
}}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ namespace internal {
|
||||||
extern Monomer dummy_residue;
|
extern Monomer dummy_residue;
|
||||||
extern Atom dummy_atom;
|
extern Atom dummy_atom;
|
||||||
|
|
||||||
};
|
}
|
||||||
}}
|
}}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -277,5 +277,6 @@ namespace std{
|
||||||
return k > vk.key();
|
return k > vk.key();
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
};
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -282,7 +282,7 @@ inline
|
||||||
Qt_widget& operator<<(Qt_widget& w, Qt_widget& (*m)(Qt_widget&))
|
Qt_widget& operator<<(Qt_widget& w, Qt_widget& (*m)(Qt_widget&))
|
||||||
{
|
{
|
||||||
return m(w);
|
return m(w);
|
||||||
};
|
}
|
||||||
|
|
||||||
// w << noFill << ... stop the filling of geometrical object
|
// w << noFill << ... stop the filling of geometrical object
|
||||||
inline
|
inline
|
||||||
|
|
@ -348,7 +348,7 @@ inline
|
||||||
QColor Qt_widget::color() const
|
QColor Qt_widget::color() const
|
||||||
{
|
{
|
||||||
return painter->pen().color();
|
return painter->pen().color();
|
||||||
};
|
}
|
||||||
|
|
||||||
|
|
||||||
inline
|
inline
|
||||||
|
|
|
||||||
|
|
@ -74,6 +74,6 @@ private:
|
||||||
QToolButton* nolayerBt;
|
QToolButton* nolayerBt;
|
||||||
};//end class
|
};//end class
|
||||||
|
|
||||||
};//end namespace
|
} //end namespace
|
||||||
|
|
||||||
#endif //CGAL_QT_WIDGET_STANDARD_TOOLBAR_H
|
#endif //CGAL_QT_WIDGET_STANDARD_TOOLBAR_H
|
||||||
|
|
|
||||||
|
|
@ -558,7 +558,7 @@ void Qt_widget::clear() {
|
||||||
emit(redraw_on_front());
|
emit(redraw_on_front());
|
||||||
unlock();
|
unlock();
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
void Qt_widget::detach(Qt_widget_layer* s)
|
void Qt_widget::detach(Qt_widget_layer* s)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ Qt_widget_history::Qt_widget_history(Qt_widget* parent, const char* name):
|
||||||
this, SLOT(save()));
|
this, SLOT(save()));
|
||||||
connect(parent, SIGNAL(internal_clear_history()),
|
connect(parent, SIGNAL(internal_clear_history()),
|
||||||
this, SLOT(clear()));
|
this, SLOT(clear()));
|
||||||
};
|
}
|
||||||
|
|
||||||
void Qt_widget_history::backward()
|
void Qt_widget_history::backward()
|
||||||
{
|
{
|
||||||
|
|
@ -90,6 +90,6 @@ void Qt_widget_history::save()
|
||||||
emit forwardAvaillable(false);
|
emit forwardAvaillable(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
}; // end namespace
|
} // end namespace
|
||||||
#include "Qt_widget_history.moc"
|
#include "Qt_widget_history.moc"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ namespace CGAL {
|
||||||
{
|
{
|
||||||
setLabel("Qt_widget standard toolbar");
|
setLabel("Qt_widget standard toolbar");
|
||||||
fill_toolbar(parent);
|
fill_toolbar(parent);
|
||||||
};
|
}
|
||||||
|
|
||||||
Qt_widget_standard_toolbar::
|
Qt_widget_standard_toolbar::
|
||||||
Qt_widget_standard_toolbar(Qt_widget *w, QMainWindow *mw,
|
Qt_widget_standard_toolbar(Qt_widget *w, QMainWindow *mw,
|
||||||
|
|
@ -68,7 +68,7 @@ namespace CGAL {
|
||||||
widget(w)
|
widget(w)
|
||||||
{
|
{
|
||||||
fill_toolbar(mw);
|
fill_toolbar(mw);
|
||||||
};
|
}
|
||||||
|
|
||||||
void Qt_widget_standard_toolbar::fill_toolbar(QMainWindow *mw)
|
void Qt_widget_standard_toolbar::fill_toolbar(QMainWindow *mw)
|
||||||
{
|
{
|
||||||
|
|
@ -206,7 +206,7 @@ namespace CGAL {
|
||||||
connect(history, SIGNAL(forwardAvaillable(bool)),
|
connect(history, SIGNAL(forwardAvaillable(bool)),
|
||||||
forwardBt, SLOT(setEnabled(bool)));
|
forwardBt, SLOT(setEnabled(bool)));
|
||||||
history->clear();
|
history->clear();
|
||||||
};
|
}
|
||||||
|
|
||||||
void Qt_widget_standard_toolbar::group_clicked(int i)
|
void Qt_widget_standard_toolbar::group_clicked(int i)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,6 @@ struct is_same_or_derived :
|
||||||
>::type
|
>::type
|
||||||
{};
|
{};
|
||||||
|
|
||||||
};
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue