mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-06 04:00:08 +00:00
Code clean-ups. Jucer development.
This commit is contained in:
parent
22e02cf791
commit
1751beed57
145 changed files with 2247 additions and 1853 deletions
|
|
@ -420,7 +420,7 @@ public:
|
|||
}
|
||||
else
|
||||
{
|
||||
jassertfalse
|
||||
jassertfalse;
|
||||
}
|
||||
|
||||
log ("disposing buffers");
|
||||
|
|
@ -1075,7 +1075,7 @@ private:
|
|||
}
|
||||
else
|
||||
{
|
||||
jassertfalse
|
||||
jassertfalse;
|
||||
}
|
||||
|
||||
log ("creating buffers (dummy): " + String (numChans) + ", " + String ((int) preferredSize));
|
||||
|
|
@ -1275,7 +1275,7 @@ private:
|
|||
break;
|
||||
|
||||
case 64:
|
||||
jassertfalse
|
||||
jassertfalse;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -1321,7 +1321,7 @@ private:
|
|||
break;
|
||||
|
||||
case 64:
|
||||
jassertfalse
|
||||
jassertfalse;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -477,7 +477,7 @@ public:
|
|||
break;
|
||||
|
||||
logError (hr);
|
||||
jassertfalse
|
||||
jassertfalse;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -640,7 +640,7 @@ public:
|
|||
}
|
||||
else
|
||||
{
|
||||
jassertfalse
|
||||
jassertfalse;
|
||||
}
|
||||
|
||||
writeOffset = (writeOffset + dwSize1 + dwSize2) % totalBytesPerBuffer;
|
||||
|
|
@ -649,7 +649,7 @@ public:
|
|||
}
|
||||
else
|
||||
{
|
||||
jassertfalse
|
||||
jassertfalse;
|
||||
logError (hr);
|
||||
}
|
||||
|
||||
|
|
@ -920,7 +920,7 @@ public:
|
|||
}
|
||||
else
|
||||
{
|
||||
jassertfalse
|
||||
jassertfalse;
|
||||
}
|
||||
|
||||
readOffset = (readOffset + dwsize1 + dwsize2) % totalBytesPerBuffer;
|
||||
|
|
@ -930,7 +930,7 @@ public:
|
|||
else
|
||||
{
|
||||
logError (hr);
|
||||
jassertfalse
|
||||
jassertfalse;
|
||||
}
|
||||
|
||||
bytesFilled -= bytesPerBuffer;
|
||||
|
|
|
|||
|
|
@ -189,7 +189,7 @@ void FileChooser::showPlatformDialog (Array<File>& results,
|
|||
|
||||
if (currentExtraFileWin->isValidComponent())
|
||||
{
|
||||
jassertfalse
|
||||
jassertfalse;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -442,7 +442,7 @@ const File JUCE_CALLTYPE File::getSpecialLocation (const SpecialLocationType typ
|
|||
break;
|
||||
|
||||
default:
|
||||
jassertfalse // unknown type?
|
||||
jassertfalse; // unknown type?
|
||||
return File::nonexistent;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -205,12 +205,12 @@ public:
|
|||
}
|
||||
else
|
||||
{
|
||||
jassertfalse
|
||||
jassertfalse;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jassertfalse
|
||||
jassertfalse;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ public:
|
|||
}
|
||||
else
|
||||
{
|
||||
jassertfalse // midi buffer overflow! You might need to increase the size..
|
||||
jassertfalse; // midi buffer overflow! You might need to increase the size..
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -127,7 +127,7 @@ public:
|
|||
}
|
||||
else
|
||||
{
|
||||
jassertfalse // midi buffer overflow! You might need to increase the size..
|
||||
jassertfalse; // midi buffer overflow! You might need to increase the size..
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ static void getWglExtensions (HDC dc, StringArray& result) throw()
|
|||
if (WGL_EXT_FUNCTION_INIT (PFNWGLGETEXTENSIONSSTRINGARBPROC, wglGetExtensionsStringARB))
|
||||
result.addTokens (String (wglGetExtensionsStringARB (dc)), false);
|
||||
else
|
||||
jassertfalse // If this fails, it may be because you didn't activate the openGL context
|
||||
jassertfalse; // If this fails, it may be because you didn't activate the openGL context
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -343,7 +343,7 @@ public:
|
|||
int attributes = WGL_NUMBER_PIXEL_FORMATS_ARB;
|
||||
|
||||
if (! wglGetPixelFormatAttribivARB (dc, 1, 0, 1, &attributes, &numTypes))
|
||||
jassertfalse
|
||||
jassertfalse;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -461,7 +461,7 @@ private:
|
|||
}
|
||||
else
|
||||
{
|
||||
jassertfalse
|
||||
jassertfalse;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
@ -486,7 +486,7 @@ private:
|
|||
}
|
||||
else
|
||||
{
|
||||
jassertfalse
|
||||
jassertfalse;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -191,7 +191,7 @@ bool juce_IsRunningInWine()
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
const String JUCE_CALLTYPE PlatformUtilities::getCurrentCommandLineParams() throw()
|
||||
const String JUCE_CALLTYPE PlatformUtilities::getCurrentCommandLineParams()
|
||||
{
|
||||
String s (::GetCommandLineW());
|
||||
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ bool QuickTimeMovieComponent::loadMovie (InputStream* movieStream,
|
|||
{
|
||||
// You're trying to open a movie when the control hasn't yet been created, probably because
|
||||
// you've not yet added this component to a Window and made the whole component hierarchy visible.
|
||||
jassertfalse
|
||||
jassertfalse;
|
||||
}
|
||||
|
||||
return movieLoaded;
|
||||
|
|
|
|||
|
|
@ -293,12 +293,12 @@ bool JUCE_CALLTYPE Process::isRunningUnderDebugger()
|
|||
//==============================================================================
|
||||
void Process::raisePrivilege()
|
||||
{
|
||||
jassertfalse // xxx not implemented
|
||||
jassertfalse; // xxx not implemented
|
||||
}
|
||||
|
||||
void Process::lowerPrivilege()
|
||||
{
|
||||
jassertfalse // xxx not implemented
|
||||
jassertfalse; // xxx not implemented
|
||||
}
|
||||
|
||||
void Process::terminate()
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ const String getAudioErrorDesc (HRESULT hr)
|
|||
return e;
|
||||
}
|
||||
|
||||
#define logFailure(hr) { if (FAILED (hr)) { DBG ("WASAPI FAIL! " + getAudioErrorDesc (hr)); jassertfalse } }
|
||||
#define logFailure(hr) { if (FAILED (hr)) { DBG ("WASAPI FAIL! " + getAudioErrorDesc (hr)); jassertfalse; } }
|
||||
#define OK(a) wasapi_checkResult(a)
|
||||
|
||||
static bool wasapi_checkResult (HRESULT hr)
|
||||
|
|
|
|||
|
|
@ -998,7 +998,7 @@ private:
|
|||
}
|
||||
else
|
||||
{
|
||||
jassertfalse
|
||||
jassertfalse;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2210,7 +2210,7 @@ class ScreenSaverDefeater : public Timer,
|
|||
public DeletedAtShutdown
|
||||
{
|
||||
public:
|
||||
ScreenSaverDefeater() throw()
|
||||
ScreenSaverDefeater()
|
||||
{
|
||||
startTimer (10000);
|
||||
timerCallback();
|
||||
|
|
@ -2241,19 +2241,15 @@ public:
|
|||
|
||||
static ScreenSaverDefeater* screenSaverDefeater = 0;
|
||||
|
||||
void Desktop::setScreenSaverEnabled (const bool isEnabled) throw()
|
||||
void Desktop::setScreenSaverEnabled (const bool isEnabled)
|
||||
{
|
||||
if (isEnabled)
|
||||
{
|
||||
deleteAndZero (screenSaverDefeater);
|
||||
}
|
||||
else if (screenSaverDefeater == 0)
|
||||
{
|
||||
screenSaverDefeater = new ScreenSaverDefeater();
|
||||
}
|
||||
}
|
||||
|
||||
bool Desktop::isScreenSaverEnabled() throw()
|
||||
bool Desktop::isScreenSaverEnabled()
|
||||
{
|
||||
return screenSaverDefeater == 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue