summaryrefslogtreecommitdiff
path: root/filter/source
diff options
context:
space:
mode:
authorKorrawit Pruegsanusak <detective.conan.1412@gmail.com>2011-06-12 16:40:20 +0700
committerNorbert Thiebaud <nthiebaud@gmail.com>2011-06-12 16:44:43 -0500
commit655d930476045a2de7f3ead4768bb75df8cf7c82 (patch)
tree9f240c0f4ef720b1899d5797ac1fcdffe5be2f40 /filter/source
parent0fa6dbcdab49b79852c451c173867fac0d8f213a (diff)
Code cleanup
* Remove dead code * Fix comment typos Released under LGPLv3+/MPL
Diffstat (limited to 'filter/source')
-rw-r--r--filter/source/config/cache/basecontainer.hxx4
-rw-r--r--filter/source/config/cache/cacheitem.hxx8
-rw-r--r--filter/source/config/cache/cacheupdatelistener.cxx4
-rw-r--r--filter/source/config/cache/constant.hxx2
-rw-r--r--filter/source/config/cache/filtercache.cxx4
-rw-r--r--filter/source/config/cache/filtercache.hxx4
-rw-r--r--filter/source/config/cache/lateinitlistener.cxx4
-rw-r--r--filter/source/config/cache/typedetection.hxx2
-rw-r--r--filter/source/msfilter/msdffimp.cxx2
-rw-r--r--filter/source/xslt/import/wordml/wordml2ooo.xsl2
10 files changed, 18 insertions, 18 deletions
diff --git a/filter/source/config/cache/basecontainer.hxx b/filter/source/config/cache/basecontainer.hxx
index 6b30d2327845..a4a209772d3f 100644
--- a/filter/source/config/cache/basecontainer.hxx
+++ b/filter/source/config/cache/basecontainer.hxx
@@ -65,7 +65,7 @@ namespace filter{
should be available etc.
@attention The base class BaseLock must be the first of declared ones.
- Otherwhise we cant be shure, that our own mutex member (which is
+ Otherwise we cant be shure, that our own mutex member (which is
present by this base class!) was full initialized inside our own
ctor as first!
*/
@@ -213,7 +213,7 @@ class BaseContainer : public BaseLock
@note The lifetime of this pointer is restricted to the time, where
the mutex of this BaseContainer instance is locked.
- Otherwhise may be the interface method flush() will destroy
+ Otherwise may be the interface method flush() will destroy
m_pFlushCache and the here returned pointer will be invalid!
Use:
diff --git a/filter/source/config/cache/cacheitem.hxx b/filter/source/config/cache/cacheitem.hxx
index 2260e076c4bc..d76aa92dd1ee 100644
--- a/filter/source/config/cache/cacheitem.hxx
+++ b/filter/source/config/cache/cacheitem.hxx
@@ -202,12 +202,12 @@ typedef ::boost::unordered_map< ::rtl::OUString ,
@descr E.g. a list of internal type names can be registered
to an extension. Organization as an hash makes it
- faster then searching inside vectors.
+ faster than searching inside vectors.
- On the other side e.g. URLPattern cant be realy adressed
+ On the other side e.g. URLPattern cant be really addressed
by a hash value ... because the use wildcards. But
there we need key-value pairs too, which cant be provided
- by a pur vector!
+ by a pure vector!
*/
typedef ::boost::unordered_map< ::rtl::OUString ,
OUStringList ,
@@ -222,7 +222,7 @@ typedef ::boost::unordered_map< ::rtl::OUString ,
@descr Every type in this list is combined with an information,
which property matched to the given URL. The user of this
structure can decide then, if a deep detection should be
- supressed e.g. if an URLPattern was used.
+ suppressed e.g. if an URLPattern was used.
*/
struct FlatDetectionInfo
{
diff --git a/filter/source/config/cache/cacheupdatelistener.cxx b/filter/source/config/cache/cacheupdatelistener.cxx
index 9901c812e85a..eeb8cd288c81 100644
--- a/filter/source/config/cache/cacheupdatelistener.cxx
+++ b/filter/source/config/cache/cacheupdatelistener.cxx
@@ -203,10 +203,10 @@ void SAL_CALL CacheUpdateListener::changesOccurred(const css::util::ChangesEven
catch(const css::container::NoSuchElementException&)
{
// can be ignored! Because we must be aware that
- // sItem was removed from the condfiguration and we forced an update of the cache.
+ // sItem was removed from the configuration and we forced an update of the cache.
// But we know, that the cache is up-to-date know and has thrown this exception afterwards .-)
}
- // NO FLUSH! Otherwhise we start a never ending story here .-)
+ // NO FLUSH! Otherwise we start a never ending story here .-)
bNotifyRefresh = sal_True;
}
diff --git a/filter/source/config/cache/constant.hxx b/filter/source/config/cache/constant.hxx
index f1dd5c96d715..097f8aa1117e 100644
--- a/filter/source/config/cache/constant.hxx
+++ b/filter/source/config/cache/constant.hxx
@@ -188,7 +188,7 @@ extern rtl::OUString pFilterStrings[];
#define SERVICE_URLTRANSFORMER _FILTER_CONFIG_FROM_ASCII_("com.sun.star.util.URLTransformer" )
#define SERVICE_FILTERCONFIGREFRESH _FILTER_CONFIG_FROM_ASCII_("com.sun.star.document.FilterConfigRefresh" )
-/** @short some configuration pathes.
+/** @short some configuration paths.
*/
#define CFGPACKAGE_TD_TYPES _FILTER_CONFIG_FROM_ASCII_("/org.openoffice.TypeDetection.Types" )
#define CFGPACKAGE_TD_FILTERS _FILTER_CONFIG_FROM_ASCII_("/org.openoffice.TypeDetection.Filter")
diff --git a/filter/source/config/cache/filtercache.cxx b/filter/source/config/cache/filtercache.cxx
index 95814a6aef6c..b3f5c91ab00c 100644
--- a/filter/source/config/cache/filtercache.cxx
+++ b/filter/source/config/cache/filtercache.cxx
@@ -156,7 +156,7 @@ void FilterCache::takeOver(const FilterCache& rClone)
// c)
// Take over only changed items!
- // Otherwhise we risk the following scenario:
+ // Otherwise we risk the following scenario:
// c1) clone_1 contains changed filters
// c2) clone_2 container changed types
// c3) clone_1 take over changed filters and unchanged types
@@ -226,7 +226,7 @@ void FilterCache::load(EFillState eRequired,
}
#endif
- // Otherwhise load the missing items.
+ // Otherwise load the missing items.
// ------------------------------------------
// a) load some const values from configration.
diff --git a/filter/source/config/cache/filtercache.hxx b/filter/source/config/cache/filtercache.hxx
index 3b81401ccf19..afef5f6d4ad0 100644
--- a/filter/source/config/cache/filtercache.hxx
+++ b/filter/source/config/cache/filtercache.hxx
@@ -320,7 +320,7 @@ class FilterCache : public BaseLock
The original container will get these new data automaticly
because it listen for changes on the internal used configuration layer.
- If the new data are needed immediatly inside the original container,
+ If the new data are needed immediately inside the original container,
the method takeOver() can be used to copy all changes back.
The may be following notifications of the configuration will be superflous then.
But they cant be stopped ...
@@ -346,7 +346,7 @@ class FilterCache : public BaseLock
@descr This method check if all requested items/properties already
exists. Only missing informations will be readed.
- Otherwhise this method does nothing!
+ Otherwise this method does nothing!
This method must be called from every user of this cache
everytimes it need a filled cache. Normaly we load
diff --git a/filter/source/config/cache/lateinitlistener.cxx b/filter/source/config/cache/lateinitlistener.cxx
index daff2deef08a..15ae1cfc5e85 100644
--- a/filter/source/config/cache/lateinitlistener.cxx
+++ b/filter/source/config/cache/lateinitlistener.cxx
@@ -54,8 +54,8 @@ LateInitListener::LateInitListener(const css::uno::Reference< css::lang::XMultiS
, m_xSMGR (xSMGR)
{
// important to do so ...
- // Otherwhise the temp. reference to ourselves
- // will kill us at realeasing time!
+ // Otherwise the temp. reference to ourselves
+ // will kill us at releasing time!
osl_incrementInterlockedCount( &m_refCount );
m_xBroadcaster = css::uno::Reference< css::document::XEventBroadcaster >(
diff --git a/filter/source/config/cache/typedetection.hxx b/filter/source/config/cache/typedetection.hxx
index 90afbbea3d09..c7a18ef245cf 100644
--- a/filter/source/config/cache/typedetection.hxx
+++ b/filter/source/config/cache/typedetection.hxx
@@ -350,7 +350,7 @@ class TypeDetection : public ::cppu::ImplInheritanceHelper1< BaseContainer
@descr This method works together with impl_validateAndSetTypeOnDescriptor()/
impl_validateAndSetFilterOnDescriptor(). All informations, which can be
- set by these two operations must be "removeable" by this method.
+ set by these two operations must be "removable" by this method.
@param rDescriptor
reference to the MediaDescriptor (represented by an easy-to-use
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index f33bf96a74f7..0b34fac649a6 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -583,7 +583,7 @@ void DffPropSet::Merge( DffPropSet& rMaster ) const
sal_uInt32 nCurrentFlags = mpContents[ nRecType ];
sal_uInt32 nMergeFlags = rMaster.mpContents[ nRecType ];
nMergeFlags &= ( nMergeFlags >> 16 ) | 0xffff0000; // clearing low word
- nMergeFlags &= ( ( nCurrentFlags & 0xffff0000 ) // remove allready hard set
+ nMergeFlags &= ( ( nCurrentFlags & 0xffff0000 ) // remove already hard set
| ( nCurrentFlags >> 16 ) ) ^ 0xffffffff; // attributes from mergeflags
nCurrentFlags &= ( ( nMergeFlags & 0xffff0000 ) // apply zero master bits
| ( nMergeFlags >> 16 ) ) ^ 0xffffffff;
diff --git a/filter/source/xslt/import/wordml/wordml2ooo.xsl b/filter/source/xslt/import/wordml/wordml2ooo.xsl
index 849e4a7c662e..ed661265fe5c 100644
--- a/filter/source/xslt/import/wordml/wordml2ooo.xsl
+++ b/filter/source/xslt/import/wordml/wordml2ooo.xsl
@@ -237,7 +237,7 @@
<xsl:template match="w:body">
<xsl:element name="office:body">
<xsl:element name="office:text">
- <!-- to add the sequece variable declaration at the begining of the office:body G.Y.-->
+ <!-- to add the sequece variable declaration at the beginning of the office:body G.Y.-->
<text:sequence-decls>
<xsl:call-template name="default_seqence_declaration"/>
<xsl:apply-templates select="/w:wordDocument/w:body//w:instrText[substring(normalize-space(text()),1,3) = 'SEQ' ] | /w:wordDocument/w:body//w:fldSimple[substring(normalize-space(@w:instr),1,3) = 'SEQ' ] " mode="sequence_declare"/>