Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7fa3efa6 authored by Lajos Molnar's avatar Lajos Molnar Committed by Ronghua Wu
Browse files

stagefright: move asString to android namespace

Change-Id: If95a60538d26ac04cf2c7a92026449503bc971c5
parent 97d5e4eb
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -24,8 +24,9 @@
#include <media/stagefright/foundation/AString.h>
#include <utils/Log.h>

inline static const char *asString(android::status_t i, const char *def = "??") {
    using namespace android;
namespace android {

inline static const char *asString(status_t i, const char *def = "??") {
    switch (i) {
        case NO_ERROR:              return "NO_ERROR";
        case UNKNOWN_ERROR:         return "UNKNOWN_ERROR";
@@ -49,8 +50,6 @@ inline static const char *asString(android::status_t i, const char *def = "??")
    }
}

namespace android {

#define LITERAL_TO_STRING_INTERNAL(x)    #x
#define LITERAL_TO_STRING(x) LITERAL_TO_STRING_INTERNAL(x)