]> Shamusworld >> Repos - architektonas/blobdiff - src/base/rs_blocklist.cpp
Added missing readme and GPL license file.
[architektonas] / src / base / rs_blocklist.cpp
index fd5dbf59db5296058c1899ddbbe7d8e0912ce862..120f0e5c685b0906d43dea4087672978f64a83e1 100644 (file)
@@ -234,20 +234,16 @@ void RS_BlockList::editBlock(RS_Block* block, const RS_Block& source) {
 RS_Block * RS_BlockList::find(const QString & name)
 {
        //RS_DEBUG->print("RS_BlockList::find");
-       RS_Block * ret = NULL;
 
-       for(uint i=0; i<count(); ++i)
+       for(uint i=0; i<count(); i++)
        {
                RS_Block * b = at(i);
 
                if (b->getName() == name)
-               {
-                       ret = b;
-                       break;
-               }
+                       return b;
        }
 
-       return ret;
+       return NULL;
 }
 
 /**