~cypheon/elfelli

e9de1b3798ec564c5e9ff6672e7e7df5b4e26ed9 — Johann Rudloff 13 years ago 37c0dcc
Eliminate some GCC warnings, close a possible memory leak.
3 files changed, 3 insertions(+), 3 deletions(-)

M src/Application.cpp
M src/SimulationCanvas.cpp
M src/SimulationCanvas.h
M src/Application.cpp => src/Application.cpp +1 -1
@@ 439,7 439,7 @@ Widget *Application::build_object_toolbar()
  al->add(*manage(tb));
  al->set_padding(2, 2, 0, 0);

  Tooltips *tips = new Tooltips;
  Tooltips *tips = manage(new Tooltips);
  Button *btn;
  Image *img;


M src/SimulationCanvas.cpp => src/SimulationCanvas.cpp +1 -1
@@ 27,7 27,7 @@
namespace Elfelli
{

char *SimulationCanvas::color_names[] = {
const char *SimulationCanvas::color_names[] = {
  "#0000ff",
  "#ccccff",
  "#000066",

M src/SimulationCanvas.h => src/SimulationCanvas.h +1 -1
@@ 96,7 96,7 @@ private:
  bool point_hits_plate(PlateBody& p, int x, int y);
  int object_at(int x, int y);

  static char *color_names[];
  static const char *color_names[];

  int body_radius, plate_radius;