Kaydet (Commit) c1e467f7 authored tarafından Caolán McNamara's avatar Caolán McNamara

remove TransliterationWrapper::compareSubstring

üst 09aaa188
......@@ -118,10 +118,6 @@ public:
const String& rStr1, sal_Int32 nPos1, sal_Int32 nCount1, sal_Int32& nMatch1,
const String& rStr2, sal_Int32 nPos2, sal_Int32 nCount2, sal_Int32& nMatch2 ) const;
sal_Int32 compareSubstring(
const String& rStr1, sal_Int32 nOff1, sal_Int32 nLen1,
const String& rStr2, sal_Int32 nOff2, sal_Int32 nLen2 ) const;
sal_Int32 compareString( const String& rStr1, const String& rStr2 ) const;
......
......@@ -227,6 +227,10 @@ utl::ConfigManager::addConfigItem(utl::ConfigItem & item) {
}
void utl::ConfigManager::removeConfigItem(utl::ConfigItem & item) {
static int hack = 0;
fprintf(stderr, "remove %d of %p\n", hack, &item);
++hack;
for (std::list< ConfigItem * >::iterator i(items_.begin());
i != items_.end(); ++i)
{
......@@ -239,6 +243,9 @@ void utl::ConfigManager::removeConfigItem(utl::ConfigItem & item) {
void utl::ConfigManager::registerConfigItem(utl::ConfigItem * item) {
OSL_ASSERT(item != 0);
static int hack = 0;
fprintf(stderr, "add %d is %p\n", hack, item);
++hack;
items_.push_back(item);
}
......
......@@ -217,26 +217,6 @@ sal_Bool TransliterationWrapper::equals(
return sal_False;
}
sal_Int32 TransliterationWrapper::compareSubstring(
const String& rStr1, sal_Int32 nOff1, sal_Int32 nLen1,
const String& rStr2, sal_Int32 nOff2, sal_Int32 nLen2 ) const
{
try
{
if( bFirstCall )
loadModuleImpl();
if ( xTrans.is() )
return xTrans->compareSubstring( rStr1, nOff1, nLen1, rStr2, nOff2, nLen2 );
}
catch (const Exception& e)
{
SAL_WARN( "unotools.i18n", "compareSubstring: Exception caught " << e.Message );
}
return 0;
}
sal_Int32 TransliterationWrapper::compareString( const String& rStr1, const String& rStr2 ) const
{
try
......
......@@ -1077,5 +1077,4 @@ ucbhelper::Content::getPropertyValues(com::sun::star::uno::Sequence<int> const&)
ucbhelper::Content::insertNewContent(rtl::OUString const&, com::sun::star::uno::Sequence<int> const&, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&, com::sun::star::uno::Reference<com::sun::star::io::XInputStream> const&, ucbhelper::Content&)
ucbhelper::SimpleCertificateValidationRequest::getResponse() const
utl::OConfigurationNode::appendNode(rtl::OUString const&, utl::OConfigurationNode const&) const
utl::TransliterationWrapper::compareSubstring(String const&, int, int, String const&, int, int) const
vcl::PDFWriter::DrawPixel(Polygon const&, Color const*)
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