Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Özgür Ozan Sen
ogs
Commits
21f9d5b0
Commit
21f9d5b0
authored
10 years ago
by
Lars Bilke
Browse files
Options
Downloads
Patches
Plain Diff
The 'strcmp' function returns 0 if corresponding strings are equal.
http://www.viva64.com/en/d/0115/print/
parent
3f9a12b3
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
FileIO/RapidXmlIO/RapidStnInterface.cpp
+1
-1
1 addition, 1 deletion
FileIO/RapidXmlIO/RapidStnInterface.cpp
FileIO/TetGenInterface.cpp
+1
-1
1 addition, 1 deletion
FileIO/TetGenInterface.cpp
FileIO/XmlIO/Qt/XmlStnInterface.cpp
+1
-1
1 addition, 1 deletion
FileIO/XmlIO/Qt/XmlStnInterface.cpp
with
3 additions
and
3 deletions
FileIO/RapidXmlIO/RapidStnInterface.cpp
+
1
−
1
View file @
21f9d5b0
...
...
@@ -52,7 +52,7 @@ std::vector<GeoLib::Point*> *RapidStnInterface::readStationFile(const std::strin
doc
.
parse
<
0
>
(
buffer
);
// parse content
if
(
std
::
string
(
doc
.
first_node
()
->
name
()).
compare
(
"OpenGeoSysSTN"
))
if
(
std
::
string
(
doc
.
first_node
()
->
name
()).
compare
(
"OpenGeoSysSTN"
)
!=
0
)
{
std
::
cout
<<
"XmlStnInterface::readFile() - Unexpected XML root."
<<
std
::
endl
;
return
NULL
;
...
...
This diff is collapsed.
Click to expand it.
FileIO/TetGenInterface.cpp
+
1
−
1
View file @
21f9d5b0
...
...
@@ -58,7 +58,7 @@ bool TetGenInterface::readTetGenGeometry (std::string const& geo_fname,
return
false
;
}
std
::
string
ext
(
BaseLib
::
getFileExtension
(
geo_fname
));
if
(
ext
.
compare
(
"smesh"
))
if
(
ext
.
compare
(
"smesh"
)
!=
0
)
{
ERR
(
"TetGenInterface::readTetGenPoly() - unknown file type (only *.smesh are supported)."
);
return
false
;
...
...
This diff is collapsed.
Click to expand it.
FileIO/XmlIO/Qt/XmlStnInterface.cpp
+
1
−
1
View file @
21f9d5b0
...
...
@@ -340,7 +340,7 @@ int XmlStnInterface::rapidReadFile(const std::string &fileName)
doc
.
parse
<
0
>
(
buffer
);
// parse content
if
(
std
::
string
(
doc
.
first_node
()
->
name
()).
compare
(
"OpenGeoSysSTN"
))
if
(
std
::
string
(
doc
.
first_node
()
->
name
()).
compare
(
"OpenGeoSysSTN"
)
!=
0
)
{
ERR
(
"XmlStnInterface::readFile() - Unexpected XML root."
);
return
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment