| 22 | |
| 23 | |
| 24 | std::shared_ptr<Object> MR::ObjectGcode::clone() const |
| 25 | { |
| 26 | auto res = std::make_shared<ObjectGcode>( ProtectedStruct{}, *this ); |
| 27 | if ( gcodeSource_ ) |
| 28 | res->setGcodeSource( std::make_shared<GcodeSource>( *gcodeSource_ ) ); |
| 29 | return res; |
| 30 | } |
| 31 | |
| 32 | std::shared_ptr<Object> ObjectGcode::shallowClone() const |
| 33 | { |
nothing calls this directly
no test coverage detected