Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Haocheng LIU
SMTK
Commits
c08d0624
Commit
c08d0624
authored
Apr 10, 2017
by
David Thompson
Browse files
Fix a gcc-4.8 compile error by not doing stupid things.
parent
ac075534
Changes
1
Hide whitespace changes
Inline
Side-by-side
smtk/model/StoredResource.cxx
View file @
c08d0624
...
...
@@ -74,7 +74,7 @@ void StoredResource::markModified(bool isDirty)
}
}
/// Return the generation number of the resource
(times
/// Return the generation number of the resource
int
StoredResource
::
generation
()
const
{
return
this
->
m_generation
;
...
...
@@ -88,7 +88,7 @@ bool StoredResource::exists(const std::string& prefix) const
{
if
(
!
this
->
m_url
.
empty
())
{
std
::
ifstream
tryToOpen
=
std
::
ifstream
(
this
->
m_url
);
std
::
ifstream
tryToOpen
(
this
->
m_url
);
if
(
tryToOpen
.
good
())
{
return
true
;
...
...
@@ -96,8 +96,8 @@ bool StoredResource::exists(const std::string& prefix) const
if
(
!
prefix
.
empty
())
{
tryToOpen
=
std
::
ifstream
(
prefix
+
this
->
m_url
);
if
(
tryToOpen
.
good
())
std
::
ifstream
tryToOpen2
(
prefix
+
this
->
m_url
);
if
(
tryToOpen
2
.
good
())
{
return
true
;
}
...
...
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