[libcalamares] Revert PRIVATETEST
- looks funny - is hard to get clang-format to respect this; it's intended as an access-modifier, but those are baked into the code rather than being configurable. - is probably rare enough that #ifdef is acceptable
This commit is contained in:
parent
53eb6c614a
commit
34e31d4331
@ -76,16 +76,4 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
* For private functions that should be public for testing purposes,
|
|
||||||
* use PRIVATETEST, which is private except when building tests.
|
|
||||||
*/
|
|
||||||
#ifndef PRIVATETEST
|
|
||||||
#if defined( BUILD_AS_TEST )
|
|
||||||
#define PRIVATETEST public
|
|
||||||
#else
|
|
||||||
#define PRIVATETEST private
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -46,7 +46,10 @@ class DLLEXPORT InstanceDescription
|
|||||||
{
|
{
|
||||||
using InstanceKey = Calamares::ModuleSystem::InstanceKey;
|
using InstanceKey = Calamares::ModuleSystem::InstanceKey;
|
||||||
|
|
||||||
PRIVATETEST : InstanceDescription( InstanceKey&& key, int weight );
|
#ifdef BUILD_AS_TEST
|
||||||
|
public:
|
||||||
|
#endif
|
||||||
|
InstanceDescription( InstanceKey&& key, int weight );
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/** @brief An invalid InstanceDescription
|
/** @brief An invalid InstanceDescription
|
||||||
|
Loading…
Reference in New Issue
Block a user