Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
Fix caca backend build.
Browse files Browse the repository at this point in the history
A previous patch has replaced Pass() with std::move in ui/ozone,
but missed two sites under caca/.

BUG=557422

Review URL: https://codereview.chromium.org/1603343003

Cr-Commit-Position: refs/heads/master@{#370409}
  • Loading branch information
laszlo-samsung authored and Commit bot committed Jan 20, 2016
1 parent fa9e85c commit a31b8aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/ozone/platform/caca/caca_window_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ scoped_ptr<ui::SurfaceOzoneCanvas> CacaWindowManager::CreateCanvasForWidget(
scoped_ptr<CacaSurface> canvas(new CacaSurface(window));
bool initialized = canvas->Initialize();
DCHECK(initialized);
return canvas;
return std::move(canvas);
}

} // namespace ui
2 changes: 1 addition & 1 deletion ui/ozone/platform/caca/ozone_platform_caca.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class OzonePlatformCaca : public OzonePlatform {
delegate, window_manager_.get(), event_source_.get(), bounds));
if (!caca_window->Initialize())
return nullptr;
return caca_window;
return std::move(caca_window);
}
scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() override {
return make_scoped_ptr(new NativeDisplayDelegateOzone());
Expand Down

0 comments on commit a31b8aa

Please sign in to comment.