Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
CAMP
campvis-public
Commits
dbe26e96
Commit
dbe26e96
authored
Feb 06, 2015
by
Christian Schulte zu Berge
Browse files
further gcc fixes
parent
400c883d
Changes
3
Hide whitespace changes
Inline
Side-by-side
core/tools/textfileparser.cpp
View file @
dbe26e96
...
...
@@ -47,7 +47,8 @@ namespace campvis {
}
bool
TextFileParser
::
TokenGroup
::
hasKey
(
const
std
::
string
&
key
)
const
{
return
(
_tokens
.
find
(
key
)
!=
_tokens
.
end
());
auto
it
=
(
_caseSensitiveKeys
?
_tokens
.
find
(
key
)
:
_tokens
.
find
(
StringUtils
::
lowercase
(
key
)));
return
(
it
!=
_tokens
.
end
());
}
const
std
::
string
&
TextFileParser
::
TokenGroup
::
getString
(
const
std
::
string
&
key
)
const
throw
(
cgt
::
Exception
)
{
...
...
modules/io/processors/genericimagereader.h
View file @
dbe26e96
...
...
@@ -34,6 +34,7 @@
#include
"core/properties/stringproperty.h"
#include
"modules/modulesapi.h"
#include
"modules/io/processors/abstractimagereader.h"
#ifdef CAMPVIS_HAS_MODULE_DEVIL
#include
"modules/devil/processors/devilimagereader.h"
...
...
modules/io/processors/mhdimagereader.cpp
View file @
dbe26e96
...
...
@@ -63,7 +63,7 @@ namespace campvis {
throw
cgt
::
FileException
(
"Could not open file."
,
p_url
.
getValue
());
// start parsing
TextFileParser
tfp
(
file
,
tru
e
,
"="
);
TextFileParser
tfp
(
file
,
fals
e
,
"="
);
tfp
.
parse
<
TextFileParser
::
ItemSeparatorLines
>
();
file
.
close
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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