Commit aac38bd4 authored by Roland Levillain's avatar Roland Levillain
Browse files

Address Clang warnings in Swilena.

	* dynamic_image2d.i: Here.
parent 478a682a
2014-05-22 Roland Levillain <roland@lrde.epita.fr>
Address Clang warnings in Swilena.
* dynamic_image2d.i: Here.
2013-09-10 Roland Levillain <roland@lrde.epita.fr> 2013-09-10 Roland Levillain <roland@lrde.epita.fr>
Swilena: Remove lines `VARIABLE = @VARIABLE@' from Makefile.am's. Swilena: Remove lines `VARIABLE = @VARIABLE@' from Makefile.am's.
......
// -*- C++ -*- // -*- C++ -*-
// Copyright (C) 2008, 2009 EPITA Research and Development Laboratory (LRDE) // Copyright (C) 2008, 2009, 2014 EPITA Research and Development
// Laboratory (LRDE).
// //
// This file is part of Olena. // This file is part of Olena.
// //
...@@ -152,7 +153,7 @@ namespace mln ...@@ -152,7 +153,7 @@ namespace mln
/// 3). /// 3).
dynamic_image2d(const box2d& b); dynamic_image2d(const box2d& b);
// FIXME: Add a virtual dtor? virtual ~dynamic_image2d();
/// Initialize an empty image. /// Initialize an empty image.
virtual void init_(const box2d& b); virtual void init_(const box2d& b);
...@@ -228,6 +229,12 @@ namespace mln ...@@ -228,6 +229,12 @@ namespace mln
init_(b); init_(b);
} }
template <typename T>
inline
dynamic_image2d<T>::~dynamic_image2d()
{
}
template <typename T> template <typename T>
inline inline
void void
...@@ -258,10 +265,11 @@ namespace mln ...@@ -258,10 +265,11 @@ namespace mln
template <typename T> template <typename T>
inline inline
const T& const T&
dynamic_image2d<T>::operator()(const point2d& p) const dynamic_image2d<T>::operator()(const point2d&) const
{ {
// Dummy. abort();
assert(false); static T v;
return v;
} }
// Dummy implementation, provided to have swig wrap the class (swig won't // Dummy implementation, provided to have swig wrap the class (swig won't
...@@ -269,10 +277,11 @@ namespace mln ...@@ -269,10 +277,11 @@ namespace mln
template <typename T> template <typename T>
inline inline
T& T&
dynamic_image2d<T>::operator()(const point2d& p) dynamic_image2d<T>::operator()(const point2d&)
{ {
// Dummy. abort();
assert(false); static T v;
return v;
} }
template <typename T> template <typename T>
......
Supports Markdown
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