src/primitives.cpp

changeset 1323
05b3e173c900
parent 1320
bdb4804bc09c
child 1325
f9abfc7ba676
--- a/src/primitives.cpp	Sat Mar 24 12:09:26 2018 +0200
+++ b/src/primitives.cpp	Sat Mar 24 12:34:20 2018 +0200
@@ -482,10 +482,10 @@
 	QString license = "";
 	bool hires = (spec.divisions == HighResolution);
 
-	if (not m_config->defaultName().isEmpty())
+	if (not config::defaultName().isEmpty())
 	{
 		license = preferredLicenseText();
-		author = format("%1 [%2]", m_config->defaultName(), m_config->defaultUser());
+		author = format("%1 [%2]", config::defaultName(), config::defaultUser());
 	}
 
 	document->setFrozen(false);
@@ -499,7 +499,7 @@
 	else
 		document->header.type = LDHeader::Primitive_8;
 
-	if (::config->useCaLicense())
+	if (config::useCaLicense())
 		document->header.license = LDHeader::CaLicense;
 	else
 		document->header.license =LDHeader::UnspecifiedLicense;
@@ -716,7 +716,7 @@
 	HierarchyElement(parent),
 	m_manager(parent)
 {
-	for (const Library& library : ::config->libraries())
+	for (const Library& library : config::libraries())
 	{
 		QDir dir {library.path};
 		if (dir.exists("p") and QFileInfo {dir.filePath("p")}.isDir())

mercurial