summaryrefslogtreecommitdiff
path: root/framework/source
diff options
context:
space:
mode:
authorAndrea Gelmini <andrea.gelmini@gelma.net>2018-01-14 12:42:46 +0100
committerJulien Nabet <serval2412@yahoo.fr>2018-01-14 16:31:26 +0100
commita452643b431803b613919871abf1a81de6de3464 (patch)
tree742b35a02a320f584357b80eb956ea0c94a03e7a /framework/source
parentcfffb09b3d6d46c500e3be3fe601a4ff6944d40e (diff)
Fix typos
Change-Id: I2b4988e1d81fe60f7699362480cd739d2620c053 Reviewed-on: https://gerrit.libreoffice.org/47856 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'framework/source')
-rw-r--r--framework/source/dispatch/loaddispatcher.cxx4
-rw-r--r--framework/source/inc/loadenv/loadenv.hxx10
-rw-r--r--framework/source/jobs/job.cxx10
-rw-r--r--framework/source/services/substitutepathvars.cxx2
-rw-r--r--framework/source/uielement/addonstoolbarmanager.cxx2
5 files changed, 14 insertions, 14 deletions
diff --git a/framework/source/dispatch/loaddispatcher.cxx b/framework/source/dispatch/loaddispatcher.cxx
index 81141c347aae..5d1b7346fade 100644
--- a/framework/source/dispatch/loaddispatcher.cxx
+++ b/framework/source/dispatch/loaddispatcher.cxx
@@ -82,7 +82,7 @@ css::uno::Any LoadDispatcher::impl_dispatch( const css::util::URL& rURL,
// may a dispatch request before is still in progress (?!).
// Then we should wait a little bit and block this new request.
// In case we run into the timeout, we should reject this new request
- // and return "FAILED" as result. Otherwhise we can start this new operation.
+ // and return "FAILED" as result. Otherwise we can start this new operation.
if (!m_aLoader.waitWhileLoading(2000)) // => 2 sec.
{
if (xListener.is())
@@ -98,7 +98,7 @@ css::uno::Any LoadDispatcher::impl_dispatch( const css::util::URL& rURL,
css::frame::DispatchResultEvent(xThis, css::frame::DispatchResultState::FAILURE, css::uno::Any()));
}
- // OK ... now the internal loader seems to be useable for new requests
+ // OK ... now the internal loader seems to be usable for new requests
// and our owner frame seems to be valid for such operations.
// Initialize it with all new but needed properties and start the loading.
css::uno::Reference< css::lang::XComponent > xComponent;
diff --git a/framework/source/inc/loadenv/loadenv.hxx b/framework/source/inc/loadenv/loadenv.hxx
index 87743974ae51..ca8999f889a9 100644
--- a/framework/source/inc/loadenv/loadenv.hxx
+++ b/framework/source/inc/loadenv/loadenv.hxx
@@ -369,7 +369,7 @@ public:
close the frame if it was created before in case loading failed.
@throw A LoadEnvException only in cases, where an internal error indicates,
- that the complete load environment seems to be not useable in general.
+ that the complete load environment seems to be not usable in general.
In such cases a RuntimeException would be to hard for the outside code :-)
@throw A RuntimeException in case any internal process indicates, that
@@ -454,7 +454,7 @@ private:
and could be activated successfully. An empty reference otherwise.
@throw A LoadEnvException only in cases, where an internal error indicates,
- that the complete load environment seems to be not useable in general.
+ that the complete load environment seems to be not usable in general.
In such cases a RuntimeException would be to hard for the outside code :-)
@throw A RuntimeException in case any internal process indicates, that
@@ -462,7 +462,7 @@ private:
*/
css::uno::Reference< css::frame::XFrame > impl_searchAlreadyLoaded();
- /** @short search for any target frame, which seems to be useable
+ /** @short search for any target frame, which seems to be usable
for this load request.
@descr Because this special feature is bound to the target specifier "_default"
@@ -479,12 +479,12 @@ private:
</ul>
If a suitable target is located it will be locked. That's why the last rule
- exists! If this method returns a valid frame reference, it was locked to be useable
+ exists! If this method returns a valid frame reference, it was locked to be usable
for this load request only. (Don't forget to reset this state later!)
Concurrent LoadEnv instances can synchronize her work be using such locks :-) HOPEFULLY
@throw A LoadEnvException only in cases, where an internal error indicates,
- that the complete load environment seems to be not useable in general.
+ that the complete load environment seems to be not usable in general.
In such cases a RuntimeException would be to hard for the outside code :-)
@throw A RuntimeException in case any internal process indicates, that
diff --git a/framework/source/jobs/job.cxx b/framework/source/jobs/job.cxx
index a0488bc45aae..e0df5442e5af 100644
--- a/framework/source/jobs/job.cxx
+++ b/framework/source/jobs/job.cxx
@@ -94,7 +94,7 @@ Job::Job( /*IN*/ const css::uno::Reference< css::uno::XComponentContext >& xCont
/**
@short superfluous!
@descr Releasing of memory and reference must be done inside die() call.
- Otherwhise it's a bug.
+ Otherwise it's a bug.
*/
Job::~Job()
{
@@ -175,7 +175,7 @@ void Job::execute( /*IN*/ const css::uno::Sequence< css::beans::NamedValue >& lD
css::uno::Sequence< css::beans::NamedValue > lJobArgs = impl_generateJobArgs(lDynamicArgs);
// It's necessary to hold us self alive!
- // Otherwhise we might die by ref count ...
+ // Otherwise we might die by ref count ...
css::uno::Reference< css::task::XJobListener > xThis(static_cast< ::cppu::OWeakObject* >(this), css::uno::UNO_QUERY);
try
@@ -274,7 +274,7 @@ void Job::execute( /*IN*/ const css::uno::Sequence< css::beans::NamedValue >& lD
@descr It doesn't matter if this request is called from inside or
from outside. We release our internal structures and stop
every activity. After doing so - this instance will not be
- useable any longer! Of course we try to handle further requests
+ usable any longer! Of course we try to handle further requests
carefully. Maybe someone else holds a reference to us ...
*/
void Job::die()
@@ -663,7 +663,7 @@ void SAL_CALL Job::queryTermination( /*IN*/ const css::lang::EventObject& )
{
SolarMutexGuard g;
- // Otherwhise try to close() it
+ // Otherwise try to close() it
css::uno::Reference< css::util::XCloseable > xClose(m_xJob, css::uno::UNO_QUERY);
if (xClose.is())
{
@@ -775,7 +775,7 @@ void SAL_CALL Job::queryClosing( const css::lang::EventObject& aEvent ,
// No veto ...
// But don't call die() here or free our internal member.
- // This must be done inside notifyClosing() only. Otherwhise the
+ // This must be done inside notifyClosing() only. Otherwise the
// might stopped job has no chance to return its results or
// call us back. We must give him the chance to finish it's work successfully.
}
diff --git a/framework/source/services/substitutepathvars.cxx b/framework/source/services/substitutepathvars.cxx
index b41660242210..6a074d471a29 100644
--- a/framework/source/services/substitutepathvars.cxx
+++ b/framework/source/services/substitutepathvars.cxx
@@ -247,7 +247,7 @@ OUString SubstitutePathVariables::GetWorkPath() const
OUString aWorkPath;
css::uno::Reference< css::container::XHierarchicalNameAccess > xPaths(officecfg::Office::Paths::Paths::get(m_xContext), css::uno::UNO_QUERY_THROW);
if (!(xPaths->getByHierarchicalName("['Work']/WritePath") >>= aWorkPath))
- // fallback in case config layer does not return an useable work dir value.
+ // fallback in case config layer does not return an usable work dir value.
aWorkPath = GetWorkVariableValue();
return aWorkPath;
diff --git a/framework/source/uielement/addonstoolbarmanager.cxx b/framework/source/uielement/addonstoolbarmanager.cxx
index 14ea5039035e..664e7798eb23 100644
--- a/framework/source/uielement/addonstoolbarmanager.cxx
+++ b/framework/source/uielement/addonstoolbarmanager.cxx
@@ -350,7 +350,7 @@ void AddonsToolBarManager::FillToolbar( const Sequence< Sequence< PropertyValue
}
}
- // Notify controller implementation to its listeners. Controller is now useable from outside.
+ // Notify controller implementation to its listeners. Controller is now usable from outside.
Reference< XUpdatable > xUpdatable( xController, UNO_QUERY );
if ( xUpdatable.is() )
{