diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-10-05 14:12:02 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-10-05 14:12:02 +0200 |
commit | d624a657a8f47a4d970e7b1c0d15d9b2b7d1437d (patch) | |
tree | 663b4b93ce2c1b95e4576bd9c873d0e9c48bf584 /fpicker/source | |
parent | Removed dead code. (diff) | |
download | core-d624a657a8f47a4d970e7b1c0d15d9b2b7d1437d.tar.gz core-d624a657a8f47a4d970e7b1c0d15d9b2b7d1437d.zip |
Fix fpicker windows build
Diffstat (limited to 'fpicker/source')
-rw-r--r-- | fpicker/source/win32/filepicker/FileOpenDlg.cxx | 8 | ||||
-rw-r--r-- | fpicker/source/win32/filepicker/filepickerstate.cxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/fpicker/source/win32/filepicker/FileOpenDlg.cxx b/fpicker/source/win32/filepicker/FileOpenDlg.cxx index cb1c446ed5b0..8bcbe484b1bf 100644 --- a/fpicker/source/win32/filepicker/FileOpenDlg.cxx +++ b/fpicker/source/win32/filepicker/FileOpenDlg.cxx @@ -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(); } diff --git a/fpicker/source/win32/filepicker/filepickerstate.cxx b/fpicker/source/win32/filepicker/filepickerstate.cxx index aec50c531894..eeba2e76c386 100644 --- a/fpicker/source/win32/filepicker/filepickerstate.cxx +++ b/fpicker/source/win32/filepicker/filepickerstate.cxx @@ -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; } |