refactor: Cleanup

This commit is contained in:
Michael Carlberg
2016-12-09 12:43:31 +01:00
parent bff119834a
commit 83f7d2ce91
7 changed files with 17 additions and 18 deletions

View File

@ -14,8 +14,8 @@ POLYBAR_NS
* Create instance
*/
config::make_type config::make(string path, string bar) {
return static_cast<const config&>(
*factory_util::singleton<const config>(logger::make(), xresource_manager::make(), move(path), move(bar)));
return static_cast<config::make_type>(*factory_util::singleton<std::remove_reference_t<config::make_type>>(
*factory_util::singleton<const config>(logger::make(), xresource_manager::make(), move(path), move(bar))));
}
/**