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
a702b44a
Commit
a702b44a
authored
7 years ago
by
Verena Reimund
Browse files
Options
Downloads
Patches
Plain Diff
Applied clang formatting
Refs #22083
parent
762ae101
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Framework/Algorithms/src/CreateWorkspace.cpp
+1
-1
1 addition, 1 deletion
Framework/Algorithms/src/CreateWorkspace.cpp
Framework/HistogramData/inc/MantidHistogramData/HistogramBuilder.h
+1
-1
1 addition, 1 deletion
.../HistogramData/inc/MantidHistogramData/HistogramBuilder.h
with
2 additions
and
2 deletions
Framework/Algorithms/src/CreateWorkspace.cpp
+
1
−
1
View file @
a702b44a
...
@@ -169,7 +169,7 @@ void CreateWorkspace::exec() {
...
@@ -169,7 +169,7 @@ void CreateWorkspace::exec() {
if
(
!
dX
.
empty
())
{
if
(
!
dX
.
empty
())
{
if
(
dX
.
size
()
!=
dataY
.
size
())
if
(
dX
.
size
()
!=
dataY
.
size
())
throw
std
::
runtime_error
(
"Dx must have the same size as DataY"
);
throw
std
::
runtime_error
(
"Dx must have the same size as DataY"
);
histogramBuilder
.
setDx
(
ySize
);
histogramBuilder
.
setDx
(
ySize
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Framework/HistogramData/inc/MantidHistogramData/HistogramBuilder.h
+
1
−
1
View file @
a702b44a
...
@@ -51,7 +51,7 @@ public:
...
@@ -51,7 +51,7 @@ public:
m_e
=
Kernel
::
make_cow
<
HistogramE
>
(
std
::
forward
<
T
>
(
data
)...);
m_e
=
Kernel
::
make_cow
<
HistogramE
>
(
std
::
forward
<
T
>
(
data
)...);
}
}
/// Sets Dx information. Can be a length or actual Dx data.
/// Sets Dx information. Can be a length or actual Dx data.
template
<
typename
...
T
>
void
setDx
(
T
&&
...
data
){
template
<
typename
...
T
>
void
setDx
(
T
&&
...
data
)
{
d_x
=
Kernel
::
make_cow
<
HistogramDx
>
(
std
::
forward
<
T
>
(
data
)...);
d_x
=
Kernel
::
make_cow
<
HistogramDx
>
(
std
::
forward
<
T
>
(
data
)...);
}
}
void
setDistribution
(
bool
isDistribution
);
void
setDistribution
(
bool
isDistribution
);
...
...
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