diff options
author | Eike Rathke <er@openoffice.org> | 2002-12-10 18:53:39 +0000 |
---|---|---|
committer | Eike Rathke <er@openoffice.org> | 2002-12-10 18:53:39 +0000 |
commit | 97adafc65026bd9bf2af08c524714f91ebde1492 (patch) | |
tree | 64f7dcc1b54de83d5acfed7bd7fc85c4b81a85d6 /unotools/source/i18n/charclass.cxx | |
parent | ff68a89a66ca5af2a6ba8d6f6bc0c6b194bc55ac (diff) |
#101362# performance: don't need multiple read single write guard, a simple guard is sufficient
Diffstat (limited to 'unotools/source/i18n/charclass.cxx')
-rw-r--r-- | unotools/source/i18n/charclass.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unotools/source/i18n/charclass.cxx b/unotools/source/i18n/charclass.cxx index 9db9cd96397f..2d3ffa261f60 100644 --- a/unotools/source/i18n/charclass.cxx +++ b/unotools/source/i18n/charclass.cxx @@ -2,9 +2,9 @@ * * $RCSfile: charclass.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: er $ $Date: 2002-11-21 16:20:47 $ + * last change: $Author: er $ $Date: 2002-12-10 19:53:14 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -156,7 +156,7 @@ void CharClass::getComponentInstance() void CharClass::setLocale( const ::com::sun::star::lang::Locale& rLocale ) { - ::utl::ReadWriteGuard aGuard( aMutex, ::utl::ReadWriteGuardMode::nCriticalChange ); + ::osl::MutexGuard aGuard( aMutex ); aLocale.Language = rLocale.Language; aLocale.Country = rLocale.Country; aLocale.Variant = rLocale.Variant; @@ -165,7 +165,7 @@ void CharClass::setLocale( const ::com::sun::star::lang::Locale& rLocale ) const ::com::sun::star::lang::Locale& CharClass::getLocale() const { - ::utl::ReadWriteGuard aGuard( aMutex ); + ::osl::MutexGuard aGuard( aMutex ); return aLocale; } |