From 33c51e8002f58847ba43bc111dabc49278e36daf Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Tue, 24 Jan 2017 21:18:00 +0530 Subject: tdf#95844 Refactor CommandInfoProvider Instead of a singleton, CommandInfoProvider should just be a set of static methods. Change-Id: I16d4406e361a72f013d78f18d6bd0ae20c0cc5e9 --- sd/source/ui/view/ViewShellBase.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sd/source/ui/view/ViewShellBase.cxx') diff --git a/sd/source/ui/view/ViewShellBase.cxx b/sd/source/ui/view/ViewShellBase.cxx index 8a3665bda16a..378747e6474a 100644 --- a/sd/source/ui/view/ViewShellBase.cxx +++ b/sd/source/ui/view/ViewShellBase.cxx @@ -976,7 +976,7 @@ vcl::Window* ViewShellBase::GetViewWindow() OUString ViewShellBase::RetrieveLabelFromCommand( const OUString& aCmdURL ) const { Reference< XFrame > xFrame( GetMainViewShell()->GetViewFrame()->GetFrame().GetFrameInterface(), UNO_QUERY ); - return vcl::CommandInfoProvider::Instance().GetLabelForCommand( aCmdURL, xFrame ); + return vcl::CommandInfoProvider::GetLabelForCommand( aCmdURL, xFrame ); } int ViewShellBase::getPart() const -- cgit