Skip to content

Commit b542425

Browse files
committed
base: Fix whitespace issues in base/random.cc/.hh
1 parent e6ea0ab commit b542425

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/base/random.cc

+1-2
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,12 @@ namespace gem5
4747
{
4848

4949
Random::Random(): Random(globalSeed){}
50+
5051
Random::Random(uint32_t s)
5152
{
5253
init(s);
5354
}
5455

55-
56-
5756
Random::~Random()
5857
{
5958
if (instances) {

src/base/random.hh

+4-4
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ class Random
7676
bool exists = false;
7777
for (const auto& weak_ptr : *instances) {
7878
if (!weak_ptr.expired() && weak_ptr.lock() == randpoint) {
79-
exists = true;
80-
break;
79+
exists = true;
80+
break;
8181
}
8282
}
8383
if (!exists) {
@@ -97,8 +97,8 @@ class Random
9797
bool exists = false;
9898
for (const auto& weak_ptr : *instances) {
9999
if (!weak_ptr.expired() && weak_ptr.lock() == randpoint) {
100-
exists = true;
101-
break;
100+
exists = true;
101+
break;
102102
}
103103
}
104104
if (!exists) {

0 commit comments

Comments
 (0)