summaryrefslogtreecommitdiffstats
path: root/win8/metro_driver/file_picker_ash.cc
diff options
context:
space:
mode:
Diffstat (limited to 'win8/metro_driver/file_picker_ash.cc')
-rw-r--r--win8/metro_driver/file_picker_ash.cc33
1 files changed, 12 insertions, 21 deletions
diff --git a/win8/metro_driver/file_picker_ash.cc b/win8/metro_driver/file_picker_ash.cc
index a270cb9..cc03b3c 100644
--- a/win8/metro_driver/file_picker_ash.cc
+++ b/win8/metro_driver/file_picker_ash.cc
@@ -23,7 +23,7 @@ typedef winfoundtn::Collections::IVector<HSTRING> StringVectorItf;
// TODO(siggi): Complete this implementation and move it to a common place.
class StringVectorImpl : public mswr::RuntimeClass<StringVectorItf> {
public:
- ~StringVectorImpl() {
+ ~StringVectorImpl() override {
std::for_each(strings_.begin(), strings_.end(), ::WindowsDeleteString);
}
@@ -35,44 +35,35 @@ class StringVectorImpl : public mswr::RuntimeClass<StringVectorItf> {
}
// IVector<HSTRING> implementation.
- STDMETHOD(GetAt)(unsigned index, HSTRING* item) {
+ STDMETHOD(GetAt)(unsigned index, HSTRING* item) override {
if (index >= strings_.size())
return E_INVALIDARG;
return ::WindowsDuplicateString(strings_[index], item);
}
- STDMETHOD(get_Size)(unsigned *size) {
+ STDMETHOD(get_Size)(unsigned* size) override {
if (strings_.size() > UINT_MAX)
return E_UNEXPECTED;
*size = static_cast<unsigned>(strings_.size());
return S_OK;
}
- STDMETHOD(GetView)(winfoundtn::Collections::IVectorView<HSTRING> **view) {
+ STDMETHOD(GetView)(
+ winfoundtn::Collections::IVectorView<HSTRING>** view) override {
return E_NOTIMPL;
}
- STDMETHOD(IndexOf)(HSTRING value, unsigned *index, boolean *found) {
+ STDMETHOD(IndexOf)(HSTRING value, unsigned* index, boolean* found) override {
return E_NOTIMPL;
}
// write methods
- STDMETHOD(SetAt)(unsigned index, HSTRING item) {
- return E_NOTIMPL;
- }
- STDMETHOD(InsertAt)(unsigned index, HSTRING item) {
- return E_NOTIMPL;
- }
- STDMETHOD(RemoveAt)(unsigned index) {
- return E_NOTIMPL;
- }
- STDMETHOD(Append)(HSTRING item) {
- return E_NOTIMPL;
- }
- STDMETHOD(RemoveAtEnd)() {
- return E_NOTIMPL;
- }
- STDMETHOD(Clear)() {
+ STDMETHOD(SetAt)(unsigned index, HSTRING item) override { return E_NOTIMPL; }
+ STDMETHOD(InsertAt)(unsigned index, HSTRING item) override {
return E_NOTIMPL;
}
+ STDMETHOD(RemoveAt)(unsigned index) override { return E_NOTIMPL; }
+ STDMETHOD(Append)(HSTRING item) override { return E_NOTIMPL; }
+ STDMETHOD(RemoveAtEnd)() override { return E_NOTIMPL; }
+ STDMETHOD(Clear)() override { return E_NOTIMPL; }
private:
std::vector<HSTRING> strings_;