Kaydet (Commit) d624a657 authored tarafından Fridrich Štrba's avatar Fridrich Štrba

Fix fpicker windows build

üst aa878cdd
......@@ -243,7 +243,7 @@ rtl::OUString SAL_CALL CFileOpenDialog::getFullFileName() const
rtl::OUString SAL_CALL CFileOpenDialog::getFileName() const
{
return rtl::OUString(m_fileTitleBuffer);
return rtl::OUString(m_fileTitleBuffer.getStr());
}
//------------------------------------------------------------------------
......@@ -374,7 +374,7 @@ rtl::OUString SAL_CALL CFileOpenDialog::getCurrentFilePath() const
if (nLen > 0)
{
m_helperBuffer.setLength((nLen * sizeof(sal_Unicode)) - 1);
return rtl::OUString(m_helperBuffer);
return rtl::OUString(m_helperBuffer.getStr());
}
return rtl::OUString();
}
......@@ -396,7 +396,7 @@ rtl::OUString SAL_CALL CFileOpenDialog::getCurrentFolderPath() const
if (nLen > 0)
{
m_helperBuffer.setLength((nLen * sizeof(sal_Unicode)) - 1);
return rtl::OUString(m_helperBuffer);
return rtl::OUString(m_helperBuffer.getStr());
}
return rtl::OUString();
}
......@@ -418,7 +418,7 @@ rtl::OUString SAL_CALL CFileOpenDialog::getCurrentFileName() const
if (nLen > 0)
{
m_helperBuffer.setLength((nLen * sizeof(sal_Unicode)) - 1);
return rtl::OUString(m_helperBuffer);
return rtl::OUString(m_helperBuffer.getStr());
}
return rtl::OUString();
}
......
......@@ -213,7 +213,7 @@ OUString MatchFixBrokenPath(const OUString& path)
if (path[1] == ':' && path[2] == '.' && path[3] == '\\')
{
// skip the '.'
return OUString(path, 2) + path.copy(3, path.getLength() - 3);
return OUString(path.getStr(), 2) + path.copy(3, path.getLength() - 3);
}
return path;
}
......
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