Clean up uses of SAL_U/SAL_W: embeddedobj

Change-Id: I02c9ed6b4bd92346bbeee1138c49b4bf5b39ad56
This commit is contained in:
Stephan Bergmann
2017-04-10 10:15:32 +02:00
parent 77a57a5cac
commit cf59d64ae2

View File

@@ -46,6 +46,7 @@
#include <oleembobj.hxx>
#include <mtnotification.hxx>
#include <memory>
#include <string>
using namespace ::com::sun::star;
using namespace ::comphelper;
@@ -922,12 +923,12 @@ void OleComponent::InitEmbeddedCopyOfLink( OleComponent* pOleLinkComponent )
hr = pOleLink->GetSourceDisplayName( &pOleStr );
if ( SUCCEEDED( hr ) && pOleStr )
{
OUString aFilePath( SAL_U(pOleStr) );
std::wstring aFilePath( pOleStr );
if ( pMalloc )
pMalloc->Free( pOleStr );
hr = OleCreateFromFile( CLSID_NULL,
reinterpret_cast<LPCWSTR>(aFilePath.getStr()),
aFilePath.c_str(),
IID_IUnknown,
OLERENDER_DRAW, // OLERENDER_FORMAT
nullptr,