summaryrefslogtreecommitdiffstats
path: root/win8
diff options
context:
space:
mode:
authorthakis <thakis@chromium.org>2015-12-10 16:23:38 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-11 00:25:16 +0000
commitacd148966bcdf4087db82bbaac36b8ea082faa53 (patch)
tree507a6e69a09cf302fd1473d95a45eb2ae4ef061e /win8
parent5063e4ac757f4f60ebed549c93ba708c1d7d03be (diff)
downloadchromium_src-acd148966bcdf4087db82bbaac36b8ea082faa53.zip
chromium_src-acd148966bcdf4087db82bbaac36b8ea082faa53.tar.gz
chromium_src-acd148966bcdf4087db82bbaac36b8ea082faa53.tar.bz2
Make metro_driver_unittests build with clang/win.
Explicit specializations must not have a storage class. Since the whole thing is in an unnamed namespace anyway, drop it on the template declaration too. ..\..\win8\metro_driver\winrt_utils_unittest.cc(19,16) : error: explicit specialization cannot have a storage class [-W error] static HRESULT CreateProperty<const wchar_t*>( ~~~~~~~ ^ BUG=82385 Review URL: https://codereview.chromium.org/1521473002 Cr-Commit-Position: refs/heads/master@{#364543}
Diffstat (limited to 'win8')
-rw-r--r--win8/metro_driver/winrt_utils_unittest.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/win8/metro_driver/winrt_utils_unittest.cc b/win8/metro_driver/winrt_utils_unittest.cc
index 9ae869b..6fa1bc7 100644
--- a/win8/metro_driver/winrt_utils_unittest.cc
+++ b/win8/metro_driver/winrt_utils_unittest.cc
@@ -11,12 +11,12 @@
namespace {
template <typename Type>
-static HRESULT CreateProperty(Type value, winfoundtn::IPropertyValue** prop) {
+HRESULT CreateProperty(Type value, winfoundtn::IPropertyValue** prop) {
return E_NOTIMPL;
}
template <>
-static HRESULT CreateProperty<const wchar_t*>(
+HRESULT CreateProperty<const wchar_t*>(
const wchar_t* value, winfoundtn::IPropertyValue** prop) {
mswrw::HString string_value;
string_value.Attach(MakeHString(value));
@@ -24,43 +24,43 @@ static HRESULT CreateProperty<const wchar_t*>(
}
template <>
-static HRESULT CreateProperty<INT16>(INT16 value,
+HRESULT CreateProperty<INT16>(INT16 value,
winfoundtn::IPropertyValue** prop) {
return winrt_utils::CreateInt16Property(value, prop);
}
template <>
-static HRESULT CreateProperty<INT32>(INT32 value,
+HRESULT CreateProperty<INT32>(INT32 value,
winfoundtn::IPropertyValue** prop) {
return winrt_utils::CreateInt32Property(value, prop);
}
template <>
-static HRESULT CreateProperty<INT64>(INT64 value,
+HRESULT CreateProperty<INT64>(INT64 value,
winfoundtn::IPropertyValue** prop) {
return winrt_utils::CreateInt64Property(value, prop);
}
template <>
-static HRESULT CreateProperty<UINT8>(UINT8 value,
+HRESULT CreateProperty<UINT8>(UINT8 value,
winfoundtn::IPropertyValue** prop) {
return winrt_utils::CreateUInt8Property(value, prop);
}
template <>
-static HRESULT CreateProperty<UINT16>(UINT16 value,
+HRESULT CreateProperty<UINT16>(UINT16 value,
winfoundtn::IPropertyValue** prop) {
return winrt_utils::CreateUInt16Property(value, prop);
}
template <>
-static HRESULT CreateProperty<UINT32>(UINT32 value,
+HRESULT CreateProperty<UINT32>(UINT32 value,
winfoundtn::IPropertyValue** prop) {
return winrt_utils::CreateUInt32Property(value, prop);
}
template <>
-static HRESULT CreateProperty<UINT64>(UINT64 value,
+HRESULT CreateProperty<UINT64>(UINT64 value,
winfoundtn::IPropertyValue** prop) {
return winrt_utils::CreateUInt64Property(value, prop);
}