diff options
Diffstat (limited to 'sd/source/ui/toolpanel/TaskPaneFocusManager.cxx')
-rw-r--r-- | sd/source/ui/toolpanel/TaskPaneFocusManager.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/toolpanel/TaskPaneFocusManager.cxx b/sd/source/ui/toolpanel/TaskPaneFocusManager.cxx index 6099e46c4c5e..cd543a4d8c5b 100644 --- a/sd/source/ui/toolpanel/TaskPaneFocusManager.cxx +++ b/sd/source/ui/toolpanel/TaskPaneFocusManager.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -42,7 +42,7 @@ namespace { class WindowHash { public: - size_t operator()(const ::Window* argument) const + size_t operator()(const ::Window* argument) const { return reinterpret_cast<unsigned long>(argument); } }; @@ -177,7 +177,7 @@ void FocusManager::RemoveLinks ( Clear(); return; } - + ::std::pair<LinkMap::iterator,LinkMap::iterator> aCandidates; LinkMap::iterator iCandidate; bool bLoop (mpLinks->size() > 0); @@ -227,7 +227,7 @@ void FocusManager::RemoveLinks (::Window* pWindow) // Make sure that we are not called back for the window. pWindow->RemoveEventListener (LINK (this, FocusManager, WindowEventListener)); - + // Remove the links from the given window. ::std::pair<LinkMap::iterator,LinkMap::iterator> aCandidates(mpLinks->equal_range(pWindow)); mpLinks->erase(aCandidates.first, aCandidates.second); @@ -258,7 +258,7 @@ void FocusManager::RemoveLinks (::Window* pWindow) void FocusManager::RemoveUnusedEventListener (::Window* pWindow) { OSL_ASSERT(pWindow!=NULL); - + if (pWindow == NULL) return; |