MCPcopy Create free account
hub / github.com/KDE/labplot / hasUnusedObjects

Method hasUnusedObjects

src/backend/datasources/projects/OriginProjectParser.cpp:90–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90bool OriginProjectParser::hasUnusedObjects() {
91 if (!m_originFile)
92 return false;
93
94 for (unsigned int i = 0; i < m_originFile->spreadCount(); i++) {
95 const auto& spread = m_originFile->spread(i);
96 if (spread.objectID < 0)
97 return true;
98 }
99 for (unsigned int i = 0; i < m_originFile->excelCount(); i++) {
100 const auto& excel = m_originFile->excel(i);
101 if (excel.objectID < 0)
102 return true;
103 }
104 for (unsigned int i = 0; i < m_originFile->matrixCount(); i++) {
105 const auto& matrix = m_originFile->matrix(i);
106 if (matrix.objectID < 0)
107 return true;
108 }
109
110 return false;
111}
112
113bool OriginProjectParser::hasMultiLayerGraphs() {
114 if (!m_originFile)

Callers 1

checkContentMethod · 0.95

Calls 3

spreadCountMethod · 0.80
excelCountMethod · 0.80
matrixCountMethod · 0.80

Tested by

no test coverage detected