MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / clear_frame

Function clear_frame

app/src/DataModel/Frame.h:858–872  ·  view source on GitHub ↗

* @brief Clears and resets a Frame object to its default state. */

Source from the content-addressed store, hash-verified

856 * @brief Clears and resets a Frame object to its default state.
857 */
858inline void clear_frame(Frame& frame) noexcept
859{
860 frame.title.clear();
861 frame.writerVersion.clear();
862 frame.writerVersionAtCreation.clear();
863 frame.groups.clear();
864 frame.actions.clear();
865 frame.sources.clear();
866 frame.groups.shrink_to_fit();
867 frame.actions.shrink_to_fit();
868 frame.sources.shrink_to_fit();
869 frame.containsCommercialFeatures = false;
870 frame.schemaVersion = 0;
871 frame.controlScriptCode.clear();
872}
873
874/**
875 * @brief Allocation-free QString copy: reuses the destination buffer when it is unique and

Callers 5

closeResourcesMethod · 0.85
closeResourcesMethod · 0.85
syncFromProjectModelMethod · 0.85
buildQuickPlotFrameMethod · 0.85

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected