Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sbalzarini Lab
S
Software
P
Parallel Computing
OpenFPM
openfpm_io
Commits
c786cb7c
Commit
c786cb7c
authored
Jan 26, 2016
by
Pietro Incardona
Browse files
Eliminating some warnings
parent
2eb9ae6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Plot/GoogleChart.hpp
View file @
c786cb7c
...
...
@@ -457,7 +457,7 @@ public:
{
if
(
y
.
size
()
==
0
)
{
std
::
cerr
<<
"Error: "
<<
__FILE__
<<
":"
<<
__LINE__
<<
" vector y must be filled"
;
std
::
cerr
<<
"Error: "
<<
__FILE__
<<
":"
<<
__LINE__
<<
" vector y must be filled
\n
"
;
return
;
}
...
...
src/util.hpp
View file @
c786cb7c
...
...
@@ -21,7 +21,7 @@
* \return true if they match
*
*/
bool
compare
(
std
::
string
file1
,
std
::
string
file2
)
static
inline
bool
compare
(
std
::
string
file1
,
std
::
string
file2
)
{
boost
::
iostreams
::
mapped_file_source
f1
(
file1
);
boost
::
iostreams
::
mapped_file_source
f2
(
file2
);
...
...
@@ -65,7 +65,7 @@ struct RGB
*
*/
struct
RGB
getColor
(
int
group
,
std
::
uniform_real_distribution
<
float
>
&
d
,
std
::
default_random_engine
&
g
)
static
inline
struct
RGB
getColor
(
int
group
,
std
::
uniform_real_distribution
<
float
>
&
d
,
std
::
default_random_engine
&
g
)
{
struct
RGB
col
;
...
...
@@ -159,7 +159,7 @@ struct RGB getColor(int group, std::uniform_real_distribution<float> & d, std::d
* \param ending ending string to check
*
*/
bool
hasEnding
(
std
::
string
const
&
fullString
,
std
::
string
const
&
ending
)
static
inline
bool
hasEnding
(
std
::
string
const
&
fullString
,
std
::
string
const
&
ending
)
{
if
(
fullString
.
length
()
>=
ending
.
length
())
{
return
(
0
==
fullString
.
compare
(
fullString
.
length
()
-
ending
.
length
(),
ending
.
length
(),
ending
));}
...
...
Write
Preview
Markdown
is supported
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