Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Olena
olena
Commits
aac38bd4
Commit
aac38bd4
authored
May 22, 2014
by
Roland Levillain
Browse files
Address Clang warnings in Swilena.
* dynamic_image2d.i: Here.
parent
478a682a
Changes
2
Hide whitespace changes
Inline
Side-by-side
swilena/ChangeLog
View file @
aac38bd4
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>
Swilena: Remove lines `VARIABLE = @VARIABLE@' from Makefile.am's.
...
...
swilena/dynamic_image2d.i
View file @
aac38bd4
// -*- 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.
//
...
...
@@ -152,7 +153,7 @@ namespace mln
/// 3).
dynamic_image2d
(
const
box2d&
b
)
;
// FIXME: Add a virtual dtor?
virtual
~
dynamic_image2d
()
;
/// Initialize an empty image.
virtual
void
init_
(
const
box2d&
b
)
;
...
...
@@ -228,6 +229,12 @@ namespace mln
init_
(
b
)
;
}
template
<
typename
T
>
inline
dynamic_image2d
<
T
>::~
dynamic_image2d
()
{
}
template
<
typename
T
>
inline
void
...
...
@@ -258,10 +265,11 @@ namespace mln
template
<
typename
T
>
inline
const
T&
dynamic_image2d
<
T
>::
operator
()(
const
point2d&
p
)
const
dynamic_image2d
<
T
>::
operator
()(
const
point2d&
)
const
{
// Dummy.
assert
(
false
)
;
abort
()
;
static
T
v
;
return
v
;
}
// Dummy implementation, provided to have swig wrap the class (swig won't
...
...
@@ -269,10 +277,11 @@ namespace mln
template
<
typename
T
>
inline
T&
dynamic_image2d
<
T
>::
operator
()(
const
point2d&
p
)
dynamic_image2d
<
T
>::
operator
()(
const
point2d&
)
{
// Dummy.
assert
(
false
)
;
abort
()
;
static
T
v
;
return
v
;
}
template
<
typename
T
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment