MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / getLockAbsoluteFilePath

Method getLockAbsoluteFilePath

Engine/Project.cpp:1792–1807  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1790}
1791
1792QString
1793Project::getLockAbsoluteFilePath() const
1794{
1795 QString projectPath = QString::fromUtf8( _imp->getProjectPath().c_str() );
1796 QString projectFilename = QString::fromUtf8( _imp->getProjectFilename().c_str() );
1797
1798 if ( projectPath.isEmpty() ) {
1799 return QString();
1800 }
1801 if ( !projectPath.endsWith( QLatin1Char('/') ) ) {
1802 projectPath.append( QLatin1Char('/') );
1803 }
1804 QString lockFilePath = projectPath + projectFilename + QString::fromUtf8(".lock");
1805
1806 return lockFilePath;
1807}
1808
1809void
1810Project::createLockFile()

Callers

nothing calls this directly

Calls 5

appendMethod · 0.80
QStringClass · 0.70
getProjectPathMethod · 0.45
getProjectFilenameMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected