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