Move AppRuntimeDirectory to private namespace
This commit is contained in:
		
							parent
							
								
									d9318c9935
								
							
						
					
					
						commit
						cfa12fb0cc
					
				
					 2 changed files with 6 additions and 8 deletions
				
			
		| 
						 | 
					@ -246,12 +246,6 @@ bool GenerateDesktopFile(
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
} // namespace
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
void SetApplicationIcon(const QIcon &icon) {
 | 
					 | 
				
			||||||
	QApplication::setWindowIcon(icon);
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
QString AppRuntimeDirectory() {
 | 
					QString AppRuntimeDirectory() {
 | 
				
			||||||
	static const auto Result = [&] {
 | 
						static const auto Result = [&] {
 | 
				
			||||||
		auto runtimeDir = QStandardPaths::writableLocation(
 | 
							auto runtimeDir = QStandardPaths::writableLocation(
 | 
				
			||||||
| 
						 | 
					@ -275,6 +269,12 @@ QString AppRuntimeDirectory() {
 | 
				
			||||||
	return Result;
 | 
						return Result;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					} // namespace
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void SetApplicationIcon(const QIcon &icon) {
 | 
				
			||||||
 | 
						QApplication::setWindowIcon(icon);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
QString SingleInstanceLocalServerName(const QString &hash) {
 | 
					QString SingleInstanceLocalServerName(const QString &hash) {
 | 
				
			||||||
	const auto idealSocketPath = AppRuntimeDirectory()
 | 
						const auto idealSocketPath = AppRuntimeDirectory()
 | 
				
			||||||
		+ hash
 | 
							+ hash
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -15,8 +15,6 @@ class LocationPoint;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace Platform {
 | 
					namespace Platform {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
QString AppRuntimeDirectory();
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
void InstallLauncher(bool force = false);
 | 
					void InstallLauncher(bool force = false);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
inline void IgnoreApplicationActivationRightNow() {
 | 
					inline void IgnoreApplicationActivationRightNow() {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue