[Libreoffice-commits] core.git: sc/source
Kohei Yoshida
kohei.yoshida at collabora.com
Fri Apr 11 09:33:14 PDT 2014
sc/source/ui/view/viewfun2.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 0ffe4358c755504bc2754ef88edadde33b5f395a
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date: Fri Apr 11 12:31:29 2014 -0400
fdo#75970: Let's do it in a straightforward fashion.
No idea what the intent of this weird static heap instantiation, but
apparently it's not helping us.
Change-Id: If6cccf649958b6cf01ede992c286af68eaeb31f6
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx
index a6d5420..6bfb61c 100644
--- a/sc/source/ui/view/viewfun2.cxx
+++ b/sc/source/ui/view/viewfun2.cxx
@@ -1583,8 +1583,8 @@ bool ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem,
if (nCommand == SVX_SEARCHCMD_FIND_ALL || nCommand == SVX_SEARCHCMD_REPLACE_ALL)
{
- static SearchResults *aSearchResults = new SearchResults(pDoc);
- aSearchResults->Show(aMatchedRanges);
+ SearchResults aSearchResults(pDoc);
+ aSearchResults.Show(aMatchedRanges);
rMark.ResetMark();
for (size_t i = 0, n = aMatchedRanges.size(); i < n; ++i)
More information about the Libreoffice-commits
mailing list