Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
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
mantidproject
mantid
Commits
f9c6fe67
Commit
f9c6fe67
authored
6 years ago
by
Sam Jenkins
Browse files
Options
Downloads
Patches
Plain Diff
Rang clang format on code
Re #18529
parent
a7923864
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
qt/widgets/common/src/CatalogHelper.cpp
+12
-14
12 additions, 14 deletions
qt/widgets/common/src/CatalogHelper.cpp
with
12 additions
and
14 deletions
qt/widgets/common/src/CatalogHelper.cpp
+
12
−
14
View file @
f9c6fe67
...
...
@@ -217,20 +217,19 @@ const std::map<std::string, std::string> CatalogHelper::validateProperties(
// value.
errors
.
emplace
(
iter
->
first
+
"_err"
,
documentation
);
}
}
//catch invalid date formats
std
::
string
dateField
=
"StartDate"
;
try
{
getTimevalue
(
catalogAlgorithm
->
getProperty
(
dateField
));
dateField
=
"EndDate"
;
getTimevalue
(
catalogAlgorithm
->
getProperty
(
dateField
));
}
catch
(
std
::
invalid_argument
){
std
::
string
documentation
=
propertyDocumentation
(
catalogAlgorithm
->
getProperties
(),
dateField
);
errors
.
emplace
(
dateField
+
"_err"
,
documentation
);
//
catch invalid date formats
std
::
string
dateField
=
"StartDate"
;
try
{
getTimevalue
(
catalogAlgorithm
->
getProperty
(
dateField
));
dateField
=
"EndDate"
;
getTimevalue
(
catalogAlgorithm
->
getProperty
(
dateField
));
}
catch
(
std
::
invalid_argument
)
{
std
::
string
documentation
=
propertyDocumentation
(
catalogAlgorithm
->
getProperties
(),
dateField
);
errors
.
emplace
(
dateField
+
"_err"
,
documentation
);
}
return
errors
;
}
...
...
@@ -254,7 +253,6 @@ time_t CatalogHelper::getTimevalue(const std::string &inputDate) {
// Return the date as time_t value.
return
Mantid
::
Types
::
Core
::
DateAndTime
(
isoDate
).
to_time_t
();
}
/**
...
...
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