Revision: 75651
          http://sourceforge.net/p/brlcad/code/75651
Author:   brlcad
Date:     2020-04-30 06:43:57 +0000 (Thu, 30 Apr 2020)
Log Message:
-----------
this warrants testing if it's code in use anywhere (couldn't ascertain for 
sure), but the func sig seems to imply this is fine (pointer is shared).  let 
the compiler return an elided copy instead of explicitly moving it.

Modified Paths:
--------------
    brlcad/trunk/src/libbg/QuickHull.hpp

Modified: brlcad/trunk/src/libbg/QuickHull.hpp
===================================================================
--- brlcad/trunk/src/libbg/QuickHull.hpp        2020-04-30 06:41:30 UTC (rev 
75650)
+++ brlcad/trunk/src/libbg/QuickHull.hpp        2020-04-30 06:43:57 UTC (rev 
75651)
@@ -938,7 +938,7 @@
 
     template<typename T>
        std::shared_ptr<std::vector<IndexType>> 
QuickHull<T>::getIndexVectorFromPool() {
-           auto r = std::move(m_indexVectorPool.get());
+           auto r = m_indexVectorPool.get();
            r->clear();
            return r;
        }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to