projects
/
satune.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e66c5d1
)
BUG FIX when there is no usedSettings
author
Hamed Gorjiara
<hgorjiar@uci.edu>
Fri, 29 Mar 2019 01:53:52 +0000
(18:53 -0700)
committer
Hamed Gorjiara
<hgorjiar@uci.edu>
Fri, 29 Mar 2019 01:53:52 +0000
(18:53 -0700)
src/Tuner/searchtuner.cc
patch
|
blob
|
history
diff --git
a/src/Tuner/searchtuner.cc
b/src/Tuner/searchtuner.cc
index 9ab6d45d8821318d7726a371f5ebb4acf85f7f6c..3cf94fb1f937f880c0dbb08c23d869d1e799bc49 100644
(file)
--- a/
src/Tuner/searchtuner.cc
+++ b/
src/Tuner/searchtuner.cc
@@
-175,7
+175,8
@@
bool SearchTuner::isSubTunerof(SearchTuner *newTuner) {
SearchTuner *SearchTuner::copyUsed() {
SearchTuner *tuner = new SearchTuner();
- SetIteratorTunableSetting *iterator = usedSettings.iterator();
+
+ SetIteratorTunableSetting *iterator = !usedSettings.isEmpty()? usedSettings.iterator():settings.iterator();
while (iterator->hasNext()) {
TunableSetting *setting = iterator->next();
TunableSetting *copy = new TunableSetting(setting);