[TD] App: remove some superfluous nullptr checks

This commit is contained in:
Uwe
2022-07-19 02:03:50 +02:00
parent 3a50f95be4
commit 93796e2d92
27 changed files with 131 additions and 143 deletions
+1 -1
View File
@@ -1538,7 +1538,7 @@ bool DrawViewDimension::has2DReferences(void) const
const std::vector<std::string> &SubNames = References2D.getSubValues();
if (!objects.empty()) {
App::DocumentObject* testRef = objects.at(0);
if (testRef != nullptr) {
if (testRef) {
if (!SubNames.empty()) {
result = true; //not empty is good
for (auto& s: SubNames) { //but check individual entries