1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-25 02:04:23 +00:00

A few minor tweaks to avoid warnings etc.

This commit is contained in:
jules 2013-06-30 19:17:37 +01:00
parent 1a49c7fc5b
commit aec3d12753
5 changed files with 5 additions and 9 deletions

View file

@ -436,10 +436,7 @@ struct VBRTagData
vbrScale = -1;
if (flags & 8)
{
vbrScale = ByteOrder::bigEndianInt (data);
data += 4;
}
headersize = ((type + 1) * 72000 * bitrate) / sampleRate;
return true;

View file

@ -249,12 +249,13 @@ public:
@param newObject the new object to add to the array
@see set, insert, addIfNotAlreadyThere, addSorted
*/
void add (const ObjectClass* const newObject) noexcept
ObjectClass* add (ObjectClass* const newObject) noexcept
{
const ScopedLockType lock (getLock());
data.ensureAllocatedSize (numUsed + 1);
jassert (data.elements != nullptr);
data.elements [numUsed++] = const_cast <ObjectClass*> (newObject);
return const_cast <ObjectClass*> (newObject);
}
/** Inserts a new object into the array at the given index.
@ -275,7 +276,7 @@ public:
@see add, addSorted, addIfNotAlreadyThere, set
*/
void insert (int indexToInsertAt,
const ObjectClass* const newObject) noexcept
ObjectClass* const newObject) noexcept
{
if (indexToInsertAt >= 0)
{

View file

@ -952,8 +952,6 @@ private:
bool setFileTimesInternal (int64 m, int64 a, int64 c) const;
void getFileTimesInternal (int64& m, int64& a, int64& c) const;
bool setFileReadOnlyInternal (bool) const;
JUCE_LEAK_DETECTOR (File)
};
#endif // __JUCE_FILE_JUCEHEADER__

View file

@ -101,7 +101,7 @@
#define JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES 0
#endif
/* Config: JUCE_INCLUDE_ZLIB_CODE
/** Config: JUCE_INCLUDE_ZLIB_CODE
This can be used to disable Juce's embedded 3rd-party zlib code.
You might need to tweak this if you're linking to an external zlib library in your app,
but for normal apps, this option should be left alone.

View file

@ -50,7 +50,7 @@ public:
method is called. If manualReset is true, then once the event is signalled,
the only way to reset it will be by calling the reset() method.
*/
WaitableEvent (bool manualReset = false) noexcept;
explicit WaitableEvent (bool manualReset = false) noexcept;
/** Destructor.