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

Fixed a few minor warnings found by valgrind.

This commit is contained in:
Julian Storer 2010-04-15 20:51:51 +01:00
parent 258b3eff81
commit 0fe89aa299
16 changed files with 335 additions and 285 deletions

View file

@ -84,15 +84,13 @@ class FileListItemComponent : public Component,
{
public:
//==============================================================================
FileListItemComponent (FileListComponent& owner_,
TimeSliceThread& thread_) throw()
: owner (owner_),
thread (thread_),
icon (0)
FileListItemComponent (FileListComponent& owner_, TimeSliceThread& thread_)
: owner (owner_), thread (thread_),
highlighted (false), index (0), icon (0)
{
}
~FileListItemComponent() throw()
~FileListItemComponent()
{
thread.removeTimeSliceClient (this);
@ -124,7 +122,7 @@ public:
void update (const File& root,
const DirectoryContentsList::FileInfo* const fileInfo,
const int index_,
const bool highlighted_) throw()
const bool highlighted_)
{
thread.removeTimeSliceClient (this);
@ -196,13 +194,13 @@ private:
Image* icon;
bool isDirectory;
void clearIcon() throw()
void clearIcon()
{
ImageCache::release (icon);
icon = 0;
}
void updateIcon (const bool onlyUpdateIfCached) throw()
void updateIcon (const bool onlyUpdateIfCached)
{
if (icon == 0)
{