mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Rename namespace to "cef_internal" for base types
This fixes duplicate symbol errors when building CEF sample applications as part of the Chromium build. These applications pick up a link-time dependency on base.lib via the //sandbox and/or //testing/gtest targets which then conflict with the symbols provided by the libcef_dll_wrapper target.
This commit is contained in:
@ -44,7 +44,7 @@
|
||||
namespace base {
|
||||
namespace mac {
|
||||
|
||||
namespace internal {
|
||||
namespace cef_internal {
|
||||
|
||||
template <typename B>
|
||||
struct ScopedBlockTraits {
|
||||
@ -53,12 +53,12 @@ struct ScopedBlockTraits {
|
||||
static void Release(B block) { Block_release(block); }
|
||||
};
|
||||
|
||||
} // namespace internal
|
||||
} // namespace cef_internal
|
||||
|
||||
// ScopedBlock<> is patterned after ScopedCFTypeRef<>, but uses Block_copy() and
|
||||
// Block_release() instead of CFRetain() and CFRelease().
|
||||
template <typename B>
|
||||
using ScopedBlock = ScopedTypeRef<B, internal::ScopedBlockTraits<B>>;
|
||||
using ScopedBlock = ScopedTypeRef<B, cef_internal::ScopedBlockTraits<B>>;
|
||||
|
||||
} // namespace mac
|
||||
} // namespace base
|
||||
|
Reference in New Issue
Block a user