Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
16dd9e1c
Commit
16dd9e1c
authored
Jan 20, 2016
by
Hahn, Steven
Browse files
Fix warnings. clang-format.
parent
67bee711
Changes
2
Show whitespace changes
Inline
Side-by-side
Framework/API/src/HistoryView.cpp
View file @
16dd9e1c
...
...
@@ -77,7 +77,8 @@ void HistoryView::unroll(std::vector<HistoryItem>::iterator &it) {
// workaround for GCC < 4.9
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55817
++
it
;
for
(
auto
itItem
=
tmpHistory
.
rbegin
();
itItem
!=
tmpHistory
.
rend
();
++
itItem
){
for
(
auto
itItem
=
tmpHistory
.
rbegin
();
itItem
!=
tmpHistory
.
rend
();
++
itItem
)
{
it
=
m_historyItems
.
insert
(
it
,
*
itItem
);
}
#endif
...
...
Framework/API/test/HistoryViewTest.h
View file @
16dd9e1c
...
...
@@ -356,7 +356,9 @@ class HistoryViewTestPerformance : public CxxTest::TestSuite {
public:
// This pair of boilerplate methods prevent the suite being created statically
// This means the constructor isn't called when running other tests
static
HistoryViewTestPerformance
*
createSuite
()
{
return
new
HistoryViewTestPerformance
();
}
static
HistoryViewTestPerformance
*
createSuite
()
{
return
new
HistoryViewTestPerformance
();
}
static
void
destroySuite
(
HistoryViewTestPerformance
*
suite
)
{
delete
suite
;
}
private:
...
...
@@ -400,15 +402,18 @@ public:
HistoryViewTestPerformance
()
:
m_wsHist
(),
m_execCount
(
0
)
{
// create dummy history structure
for
(
std
::
size_t
i
=
0
;
i
<
20
;
++
i
)
{
auto
alg
=
createFromTestAlg
(
"alg"
+
boost
::
lexical_cast
<
std
::
string
>
(
i
),
DateAndTime
(
100
+
i
,
0
));
for
(
std
::
size_t
j
=
0
;
j
<
20
;
++
j
)
{
auto
childAlg
=
createFromTestAlg
(
"child"
+
boost
::
lexical_cast
<
std
::
string
>
(
j
),
DateAndTime
(
200
+
j
,
0
));
for
(
std
::
size_t
k
=
0
;
k
<
20
;
++
k
)
{
auto
subChildAlg
=
createFromTestAlg
(
"subChild"
+
boost
::
lexical_cast
<
std
::
string
>
(
j
)
+
boost
::
lexical_cast
<
std
::
string
>
(
k
),
DateAndTime
(
300
+
k
,
0
));
for
(
int
i
=
0
;
i
<
20
;
++
i
)
{
auto
alg
=
createFromTestAlg
(
"alg"
+
boost
::
lexical_cast
<
std
::
string
>
(
i
),
DateAndTime
(
100
+
i
,
0
));
for
(
int
j
=
0
;
j
<
20
;
++
j
)
{
auto
childAlg
=
createFromTestAlg
(
"child"
+
boost
::
lexical_cast
<
std
::
string
>
(
j
),
DateAndTime
(
200
+
j
,
0
));
for
(
int
k
=
0
;
k
<
20
;
++
k
)
{
auto
subChildAlg
=
createFromTestAlg
(
"subChild"
+
boost
::
lexical_cast
<
std
::
string
>
(
j
)
+
boost
::
lexical_cast
<
std
::
string
>
(
k
),
DateAndTime
(
300
+
k
,
0
));
childAlg
->
addChildHistory
(
subChildAlg
);
}
alg
->
addChildHistory
(
childAlg
);
...
...
@@ -428,8 +433,6 @@ public:
TS_ASSERT_THROWS_NOTHING
(
view
.
rollAll
());
}
WorkspaceHistory
m_wsHist
;
size_t
m_execCount
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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