Kaydet (Commit) f0215dcc authored tarafından Michael Stahl's avatar Michael Stahl

unotools: assert if TempFile::GetURL() fails due to missing file UCP

Change-Id: I3dd844c656766835079bc191b3b55d3fba2c2219
üst 124a29f0
......@@ -364,9 +364,9 @@ OUString TempFile::GetURL()
{
if ( aURL.isEmpty() )
{
OUString aTmp;
LocalFileHelper::ConvertPhysicalNameToURL( GetFileName(), aTmp );
aURL = aTmp;
OUString const name(GetFileName());
LocalFileHelper::ConvertPhysicalNameToURL(name, aURL);
assert((name.isEmpty() || !aURL.isEmpty()) && "TempFile::GetURL failed: unit test is leaking temp files, add the ucpfile1 component!");
}
return aURL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment