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;