Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
dbcb46d3
Commit
dbcb46d3
authored
Jul 15, 2019
by
Samuel Jones
Browse files
Small GCC8 warning clear up
parent
b84db52b
Changes
8
Hide whitespace changes
Inline
Side-by-side
Framework/API/inc/MantidAPI/IndexProperty.h
View file @
dbcb46d3
...
...
@@ -39,6 +39,7 @@ public:
IndexProperty
*
clone
()
const
override
;
using
Kernel
::
ArrayProperty
<
int64_t
>::
operator
=
;
using
Kernel
::
ArrayProperty
<
int64_t
>::
operator
const
std
::
vector
<
int64_t
>
&
;
bool
isDefault
()
const
override
;
std
::
string
isValid
()
const
override
;
...
...
Framework/API/src/Algorithm.cpp
View file @
dbcb46d3
...
...
@@ -44,7 +44,6 @@
#include
"MantidAPI/Algorithm.tcc"
using
namespace
Mantid
::
Kernel
;
using
VectorStringProperty
=
PropertyWithValue
<
std
::
vector
<
std
::
string
>>
;
namespace
Mantid
{
namespace
API
{
...
...
Framework/DataHandling/test/LoadHFIRSANSTest.h
View file @
dbcb46d3
...
...
@@ -55,7 +55,7 @@ public:
spice2d
.
initialize
();
// No parameters have been set yet, so it should throw
TS_ASSERT_THROWS
(
spice2d
.
execute
(),
std
::
runtime_error
);
TS_ASSERT_THROWS
(
spice2d
.
execute
(),
const
std
::
runtime_error
&
);
// Set the file name
spice2d
.
setPropertyValue
(
"Filename"
,
inputFile
);
...
...
@@ -181,7 +181,7 @@ public:
spice2d
.
initialize
();
// No parameters have been set yet, so it should throw
TS_ASSERT_THROWS
(
spice2d
.
execute
(),
std
::
runtime_error
);
TS_ASSERT_THROWS
(
spice2d
.
execute
(),
const
std
::
runtime_error
&
);
// Set the file name
spice2d
.
setPropertyValue
(
"Filename"
,
inputFile
);
...
...
Framework/DataHandling/test/SaveStlTest.h
View file @
dbcb46d3
...
...
@@ -81,7 +81,7 @@ public:
V3D
(
-
5
,
5
,
-
15
),
V3D
(
5
,
-
5
,
15
),
V3D
(
5
,
5
,
15
),
V3D
(
-
5
,
5
,
15
),
V3D
(
-
5
,
-
5
,
15
)};
auto
writer
=
SaveStl
(
path
,
triangle
,
vertices
,
ScaleUnits
::
metres
);
TS_ASSERT_THROWS
(
writer
.
writeStl
(),
std
::
runtime_error
);
TS_ASSERT_THROWS
(
writer
.
writeStl
(),
const
std
::
runtime_error
&
);
TS_ASSERT
(
!
Poco
::
File
(
path
).
exists
());
}
...
...
Framework/Geometry/test/InstrumentDefinitionParserTest.h
View file @
dbcb46d3
...
...
@@ -936,13 +936,13 @@ public:
detid_t
numDetectors
=
3
;
TS_ASSERT_THROWS
(
loadInstrLocations
(
locations
,
numDetectors
,
true
),
Exception
::
InstrumentDefinitionError
);
const
Exception
::
InstrumentDefinitionError
&
);
locations
=
R"(<locations n-elements="3" name-count-start="5" name-count-increment="-7" name="det" />)"
;
TS_ASSERT_THROWS
(
loadInstrLocations
(
locations
,
numDetectors
,
true
),
Exception
::
InstrumentDefinitionError
);
const
Exception
::
InstrumentDefinitionError
&
);
}
void
testLocationsStaticValues
()
{
...
...
qt/scientific_interfaces/test/ISISReflectometry/Experiment/ExperimentOptionDefaultsTest.h
View file @
dbcb46d3
...
...
@@ -109,7 +109,8 @@ private:
5
,
100.0
,
500.0
,
{
1.0
,
2.0
,
3.0
,
4.0
,
5.0
},
paramsType
);
auto
instrument
=
workspace
->
getInstrument
();
ExperimentOptionDefaults
experimentDefaults
;
TS_ASSERT_THROWS
(
experimentDefaults
.
get
(
instrument
),
std
::
invalid_argument
);
TS_ASSERT_THROWS
(
experimentDefaults
.
get
(
instrument
),
const
std
::
invalid_argument
&
);
}
};
...
...
qt/scientific_interfaces/test/ISISReflectometry/Instrument/InstrumentOptionDefaultsTest.h
View file @
dbcb46d3
...
...
@@ -93,7 +93,8 @@ private:
5
,
100.0
,
500.0
,
{
1.0
,
2.0
,
3.0
,
4.0
,
5.0
},
paramsType
);
auto
instrument
=
workspace
->
getInstrument
();
InstrumentOptionDefaults
instrumentDefaults
;
TS_ASSERT_THROWS
(
instrumentDefaults
.
get
(
instrument
),
std
::
invalid_argument
);
TS_ASSERT_THROWS
(
instrumentDefaults
.
get
(
instrument
),
const
std
::
invalid_argument
&
);
}
};
...
...
qt/widgets/mplcpp/test/MantidAxesTest.h
View file @
dbcb46d3
...
...
@@ -84,7 +84,7 @@ public:
create
<
Workspace2D
>
(
2
,
Histogram
(
BinEdges
{
1
,
2
,
4
})).
release
());
MantidAxes
axes
{
pyAxes
()};
TS_ASSERT_THROWS
(
axes
.
plot
(
ws
,
2
,
"red"
,
"mylabel"
),
Python
::
ErrorAlreadySet
);
const
Python
::
ErrorAlreadySet
&
);
}
private:
...
...
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