MCPcopy Create free account
hub / github.com/codestation/qcma / refreshPath

Method refreshPath

common/cmaobject.cpp:206–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206void CMAObject::refreshPath()
207{
208 if(parent) {
209 free(metadata.path);
210 QString newpath(QString(parent->metadata.path) + "/" + metadata.name);
211 metadata.path = strdup(newpath.toUtf8().data());
212 m_path = parent->m_path + "/" + metadata.name;
213 }
214}
215
216bool CMAObject::hasParent(const CMAObject *obj)
217{

Callers 1

renameObjectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected