Formatted all .cc and .h code in rtengine, rtexif and rtgui using astyle

This commit is contained in:
DrSlony
2015-08-11 11:55:03 +02:00
parent effb46c3e1
commit 0e0cfb9b25
452 changed files with 133354 additions and 99460 deletions

View File

@@ -49,17 +49,19 @@ void SoundManager::init()
// param is either file name or name of the system event on Windows (e.g. "SystemAsterisk" or "SystemDefault").
void SoundManager::playSoundAsync(const Glib::ustring &sound)
{
if (sound.empty() || !options.sndEnable) return;
if (sound.empty() || !options.sndEnable) {
return;
}
#ifdef WIN32
DWORD sndParam=SND_ASYNC | SND_NODEFAULT;
DWORD sndParam = SND_ASYNC | SND_NODEFAULT;
if (sound.find('.')!=Glib::ustring::npos) {
if (sound.find('.') != Glib::ustring::npos) {
// contain dot, so it's a filename
sndParam|=SND_FILENAME;
sndParam |= SND_FILENAME;
} else {
// no dot, so it's a system event
sndParam|=SND_ALIAS;
sndParam |= SND_ALIAS;
}
wchar_t *wfilename = (wchar_t*)g_utf8_to_utf16 (sound.c_str(), -1, NULL, NULL, NULL);