Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
openfpm_io
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openfpm
openfpm_io
Commits
c786cb7c
Commit
c786cb7c
authored
Jan 26, 2016
by
Pietro Incardona
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eliminating some warnings
parent
2eb9ae6c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/Plot/GoogleChart.hpp
src/Plot/GoogleChart.hpp
+1
-1
src/util.hpp
src/util.hpp
+3
-3
No files found.
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
)
st
atic
inline
st
ruct
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