Format every single file using .clang-format

This commit is contained in:
Vasily
2018-12-28 03:06:42 +01:00
parent 89c02642fc
commit 51057c1d79
40 changed files with 10302 additions and 6950 deletions
@@ -1,23 +1,23 @@
#include "AudioManagerDummy.h"
// Used to get the compiler to shut up about C4100: unreferenced formal parameter.
// The cast is to get GCC to shut up about it.
#define UNREFERENCED_PARAMETER(P) static_cast<void>((P))
// Used to get the compiler to shut up about C4100: unreferenced formal
// parameter. The cast is to get GCC to shut up about it.
#define UNREFERENCED_PARAMETER( P ) static_cast<void>( ( P ) )
// application namespace
namespace advsettings {
void AudioManagerDummy::init(AudioTabController *controller)
namespace advsettings
{
void AudioManagerDummy::init( AudioTabController* controller )
{
// noop
UNREFERENCED_PARAMETER(controller);
UNREFERENCED_PARAMETER( controller );
}
void AudioManagerDummy::setPlaybackDevice(const std::string &id, bool notify)
void AudioManagerDummy::setPlaybackDevice( const std::string& id, bool notify )
{
// noop
UNREFERENCED_PARAMETER(id);
UNREFERENCED_PARAMETER(notify);
UNREFERENCED_PARAMETER( id );
UNREFERENCED_PARAMETER( notify );
}
std::string AudioManagerDummy::getPlaybackDevName()
@@ -30,11 +30,11 @@ std::string AudioManagerDummy::getPlaybackDevId()
return "dummy";
}
void AudioManagerDummy::setMirrorDevice(const std::string &id, bool notify)
void AudioManagerDummy::setMirrorDevice( const std::string& id, bool notify )
{
// noop
UNREFERENCED_PARAMETER(id);
UNREFERENCED_PARAMETER(notify);
UNREFERENCED_PARAMETER( id );
UNREFERENCED_PARAMETER( notify );
}
bool AudioManagerDummy::isMirrorValid()
@@ -57,9 +57,9 @@ float AudioManagerDummy::getMirrorVolume()
return 0;
}
bool AudioManagerDummy::setMirrorVolume(float value)
bool AudioManagerDummy::setMirrorVolume( float value )
{
UNREFERENCED_PARAMETER(value);
UNREFERENCED_PARAMETER( value );
return false;
}
@@ -68,9 +68,9 @@ bool AudioManagerDummy::getMirrorMuted()
return true;
}
bool AudioManagerDummy::setMirrorMuted(bool value)
bool AudioManagerDummy::setMirrorMuted( bool value )
{
UNREFERENCED_PARAMETER(value);
UNREFERENCED_PARAMETER( value );
return false;
}
@@ -79,11 +79,11 @@ bool AudioManagerDummy::isMicValid()
return false;
}
void AudioManagerDummy::setMicDevice(const std::string &id, bool notify)
void AudioManagerDummy::setMicDevice( const std::string& id, bool notify )
{
// noop
UNREFERENCED_PARAMETER(id);
UNREFERENCED_PARAMETER(notify);
UNREFERENCED_PARAMETER( id );
UNREFERENCED_PARAMETER( notify );
}
std::string AudioManagerDummy::getMicDevName()
@@ -101,9 +101,9 @@ float AudioManagerDummy::getMicVolume()
return 0;
}
bool AudioManagerDummy::setMicVolume(float value)
bool AudioManagerDummy::setMicVolume( float value )
{
UNREFERENCED_PARAMETER(value);
UNREFERENCED_PARAMETER( value );
return false;
}
@@ -112,22 +112,22 @@ bool AudioManagerDummy::getMicMuted()
return true;
}
bool AudioManagerDummy::setMicMuted(bool value)
bool AudioManagerDummy::setMicMuted( bool value )
{
UNREFERENCED_PARAMETER(value);
UNREFERENCED_PARAMETER( value );
return false;
}
std::vector<std::pair<std::string, std::string> > AudioManagerDummy::getRecordingDevices()
std::vector<std::pair<std::string, std::string>>
AudioManagerDummy::getRecordingDevices()
{
return {};
}
std::vector<std::pair<std::string, std::string> > AudioManagerDummy::getPlaybackDevices()
std::vector<std::pair<std::string, std::string>>
AudioManagerDummy::getPlaybackDevices()
{
return {};
}
}
} // namespace advsettings