Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
deaebd6d
Commit
deaebd6d
authored
3 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
tidy ctd
parent
4c3946f4
No related branches found
No related tags found
1 merge request
!349
a few more warnings from clang-tidy resolved
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GUI/Views/ImportDataWidgets/CsvImportAssistant/CsvImportAssistant.cpp
+3
-4
3 additions, 4 deletions
...portDataWidgets/CsvImportAssistant/CsvImportAssistant.cpp
with
3 additions
and
4 deletions
GUI/Views/ImportDataWidgets/CsvImportAssistant/CsvImportAssistant.cpp
+
3
−
4
View file @
deaebd6d
...
@@ -324,10 +324,9 @@ char CsvImportAssistant::guessSeparator() const
...
@@ -324,10 +324,9 @@ char CsvImportAssistant::guessSeparator() const
// count number of occurences of each char in the file:
// count number of occurences of each char in the file:
char
c
;
char
c
;
std
::
ifstream
is
(
m_fileName
.
toStdString
());
std
::
ifstream
is
(
m_fileName
.
toStdString
());
while
(
is
.
get
(
c
))
{
while
(
is
.
get
(
c
))
if
(
size_t
(
c
)
<
127
)
if
(
c
>=
0
&&
c
<
127
)
frequencies
[
size_t
(
c
)]
++
;
frequencies
[
int
(
c
)]
++
;
}
is
.
close
();
is
.
close
();
// set the guessed separator as the most frequent among the
// set the guessed separator as the most frequent among the
...
...
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