Fix class vs. struct mismatch

Don't refer to classes as structs and view versa -- causes warnings in
clang (in code built with -Werror)

Change-Id: I4d7f461bcf6fe4e43a14ad2f28ee0e0ddea95abc
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
This commit is contained in:
Bernhard Rosenkränzer
2014-11-17 21:15:30 +01:00
committed by Chih-Hung Hsieh
parent 613d20668a
commit 99d61edfda
4 changed files with 7 additions and 6 deletions

View File

@@ -193,7 +193,7 @@ bool AudioPlayer::init(const char* config)
return false;
}
void AudioPlayer::playFile(struct FileMap* fileMap) {
void AudioPlayer::playFile(FileMap* fileMap) {
// stop any currently playing sound
requestExitAndWait();

View File

@@ -18,6 +18,7 @@
#define _BOOTANIMATION_AUDIOPLAYER_H
#include <utils/Thread.h>
#include <utils/FileMap.h>
namespace android {
@@ -28,7 +29,7 @@ public:
virtual ~AudioPlayer();
bool init(const char* config);
void playFile(struct FileMap* fileMap);
void playFile(FileMap* fileMap);
private:
virtual bool threadLoop();
@@ -39,7 +40,7 @@ private:
int mPeriodSize;
int mPeriodCount;
struct FileMap* mCurrentFile;
FileMap* mCurrentFile;
};
} // namespace android

View File

@@ -30,7 +30,7 @@
namespace android {
struct IMediaHTTPService;
struct MetaData;
class MetaData;
struct NuMediaExtractor;
struct JMediaExtractor : public RefBase {

View File

@@ -24,8 +24,8 @@
namespace android {
struct IMemory;
struct MemoryDealer;
class IMemory;
class MemoryDealer;
struct JMediaHTTPConnection : public RefBase {
enum {