svl/source/items/IndexedStyleSheets.cxx | 5 ----- 1 file changed, 5 deletions(-)
New commits: commit a21d24ca72b792c9fdd74894ebf773c72fc2b704 Author: David Tardon <dtar...@redhat.com> Date: Sun Nov 13 19:01:44 2016 +0100 revert unintentionally committed lines Change-Id: I5cb355af20f18e63fdfe45e5946a9281fd1fa084 diff --git a/svl/source/items/IndexedStyleSheets.cxx b/svl/source/items/IndexedStyleSheets.cxx index fa68f49..6bc4ad0 100644 --- a/svl/source/items/IndexedStyleSheets.cxx +++ b/svl/source/items/IndexedStyleSheets.cxx @@ -90,7 +90,6 @@ IndexedStyleSheets::GetNumberOfStyleSheets() const void IndexedStyleSheets::AddStyleSheet(const rtl::Reference< SfxStyleSheetBase >& style) { - assert(!style->GetName().isEmpty()); if (!HasStyleSheet(style)) { mStyleSheets.push_back(style); // since we just added an element to the vector, we can safely do -1 as it will always be >= 1 @@ -101,7 +100,6 @@ IndexedStyleSheets::AddStyleSheet(const rtl::Reference< SfxStyleSheetBase >& sty bool IndexedStyleSheets::RemoveStyleSheet(const rtl::Reference< SfxStyleSheetBase >& style) { - assert(!style->GetName().isEmpty()); rtl::OUString styleName = style->GetName(); std::vector<unsigned> positions = FindPositionsByName(styleName); bool found = false; @@ -201,7 +199,6 @@ void IndexedStyleSheets::Clear(StyleSheetDisposer& disposer) { for (VectorType::iterator it = mStyleSheets.begin(); it != mStyleSheets.end(); ++it) { - assert(!(*it)->GetName().isEmpty()); disposer.Dispose(*it); } mStyleSheets.clear(); @@ -210,8 +207,6 @@ IndexedStyleSheets::Clear(StyleSheetDisposer& disposer) IndexedStyleSheets::~IndexedStyleSheets() { - for (const auto& rStyleSheet : mStyleSheets) - assert(!rStyleSheet->GetName().isEmpty()); } bool _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits