Skip to content

Commit 6bceb1f

Browse files
committed
use fill
1 parent 5c2f64a commit 6bceb1f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

qtfred/src/mission/EditorViewport.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -978,9 +978,7 @@ bool EditorViewport::getLayerVisibility(const SCP_string& name, bool* visible, S
978978
}
979979

980980
void EditorViewport::showAllLayers() {
981-
for (auto& visible : _layerVisibility) {
982-
visible = true;
983-
}
981+
std::fill(_layerVisibility.begin(), _layerVisibility.end(), true);
984982
needsUpdate();
985983
}
986984

0 commit comments

Comments
 (0)