[Libreoffice-commits] .: 2 commits - sal/osl sal/rtl
David Tardon
dtardon at kemper.freedesktop.org
Mon Jan 24 23:55:41 PST 2011
sal/osl/unx/profile.c | 3 ---
sal/rtl/source/ustring.c | 4 ++--
2 files changed, 2 insertions(+), 5 deletions(-)
New commits:
commit 04de6a2b6540d3986e241fd4ee9dfb4e25e2a0f2
Author: David Tardon <dtardon at redhat.com>
Date: Tue Jan 25 08:55:28 2011 +0100
WaE: remove unused variable
diff --git a/sal/rtl/source/ustring.c b/sal/rtl/source/ustring.c
index 97949e4..89ba0a8 100644
--- a/sal/rtl/source/ustring.c
+++ b/sal/rtl/source/ustring.c
@@ -865,13 +865,13 @@ void SAL_CALL rtl_uString_internConvert( rtl_uString ** newStr,
{
rtl_uString *pScratch;
rtl_TextToUnicodeConverter hConverter;
- sal_Size nDestChars, nSrcBytes;
+ sal_Size nSrcBytes;
sal_uInt32 nInfo;
pScratch = alloca( sizeof(rtl_uString) + ulen * sizeof (IMPL_RTL_STRCODE) );
hConverter = rtl_createTextToUnicodeConverter( eTextEncoding );
- nDestChars = rtl_convertTextToUnicode(
+ rtl_convertTextToUnicode(
hConverter, 0, str, len, pScratch->buffer, ulen, convertFlags, &nInfo, &nSrcBytes );
rtl_destroyTextToUnicodeConverter( hConverter );
commit e98d1bb6666c6e73805a9008375dfae6d54f9e14
Author: David Tardon <dtardon at redhat.com>
Date: Tue Jan 25 08:47:08 2011 +0100
WaE: remove unused variable
diff --git a/sal/osl/unx/profile.c b/sal/osl/unx/profile.c
index d9accba..2c1d7bc 100644
--- a/sal/osl/unx/profile.c
+++ b/sal/osl/unx/profile.c
@@ -197,11 +197,8 @@ static oslProfile SAL_CALL osl_psz_openProfile(const sal_Char *pszProfileName, o
{
osl_TFile* pFile;
osl_TProfileImpl* pProfile;
- sal_Char Filename[PATH_MAX];
sal_Bool bRet = sal_False;
- Filename[0] = '\0';
-
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("In osl_openProfile\n");
#endif
More information about the Libreoffice-commits
mailing list