summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2009-03-14 17:15:26 +0000
committerVladimir Glazounov <vg@openoffice.org>2009-03-14 17:15:26 +0000
commitd8e5bfb7597f9b9e6c4822dba3368a42a1310614 (patch)
treeb5b8ea2ee44ddfda42fe2ea4867667d75ffa0b7e
parenta476b01ccb3c87709f59ac076f5f6b568f99b220 (diff)
CWS-TOOLING: integrate CWS cmcfixes55
2009-03-03 10:04:14 +0100 cmc r268711 : #i99765# silence warning 2009-03-02 12:18:48 +0100 cmc r268647 : #i99772# silence warnings under >= python 2.6 and gcc 4.4 2009-03-02 10:51:12 +0100 cmc r268641 : #i99767# fix up trivial && || 2009-03-02 10:32:02 +0100 cmc r268640 : #i99766 remove && || warning 2009-03-02 10:01:05 +0100 cmc r268638 : #i99764# easy && || warnings 2009-02-27 13:03:08 +0100 cmc r268583 : #i96059# fix dodgy code 2009-02-27 12:57:38 +0100 cmc r268582 : #i99718# don't leave unused methods on non-win platform
-rw-r--r--lingucomponent/source/lingutil/lingutil.cxx11
-rw-r--r--lingucomponent/source/lingutil/lingutil.hxx5
2 files changed, 8 insertions, 8 deletions
diff --git a/lingucomponent/source/lingutil/lingutil.cxx b/lingucomponent/source/lingutil/lingutil.cxx
index dcf61e351950..f6d24a2d059a 100644
--- a/lingucomponent/source/lingutil/lingutil.cxx
+++ b/lingucomponent/source/lingutil/lingutil.cxx
@@ -65,6 +65,7 @@
using ::com::sun::star::lang::Locale;
using namespace ::com::sun::star;
+#if 0
//////////////////////////////////////////////////////////////////////
String GetDirectoryPathFromFileURL( const String &rFileURL )
@@ -78,15 +79,13 @@ String GetDirectoryPathFromFileURL( const String &rFileURL )
String aRes = aURLObj.GetMainURL( INetURLObject::DECODE_TO_IURI );
return aRes;
}
+#endif
-
+#if defined(WNT)
rtl::OString Win_GetShortPathName( const rtl::OUString &rLongPathName )
{
- (void) rLongPathName;
rtl::OString aRes;
-#if defined(WNT)
-
sal_Unicode aShortBuffer[1024] = {0};
sal_Int32 nShortBufSize = sizeof( aShortBuffer ) / sizeof( aShortBuffer[0] );
@@ -100,12 +99,10 @@ rtl::OString Win_GetShortPathName( const rtl::OUString &rLongPathName )
aRes = rtl::OString( OU2ENC( rtl::OUString( aShortBuffer, nShortLen ), osl_getThreadTextEncoding()) );
else
DBG_ERROR( "Win_GetShortPathName: buffer to short" );
-#else
- DBG_ERROR( "Win_GetShortPathName: functions should nor be called in non-Windows builds" );
-#endif //defined(WNT)
return aRes;
}
+#endif //defined(WNT)
//////////////////////////////////////////////////////////////////////
diff --git a/lingucomponent/source/lingutil/lingutil.hxx b/lingucomponent/source/lingutil/lingutil.hxx
index c551969a4330..9581a2ffcecf 100644
--- a/lingucomponent/source/lingutil/lingutil.hxx
+++ b/lingucomponent/source/lingutil/lingutil.hxx
@@ -79,18 +79,21 @@ inline BOOL operator == ( const ::com::sun::star::lang::Locale &rL1, const ::com
rL1.Variant == rL2.Variant;
}
+#if 0
///////////////////////////////////////////////////////////////////////////
String GetDirectoryPathFromFileURL( const String &rFileURL );
+#endif
+#if defined(WNT)
///////////////////////////////////////////////////////////////////////////
-
// to be use to get a short path name under Windows that still can be used with
// the 'fopen' call. This is necessary since under Windows there seems to be
// a restriction of only about 110-130 characters length to a path name in order
// for it to work with 'fopen'. And that length is usually easily exceeded
// when using extensions...
rtl::OString Win_GetShortPathName( const rtl::OUString &rLongPathName );
+#endif
///////////////////////////////////////////////////////////////////////////