summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2016-11-13 19:01:44 +0100
committerDavid Tardon <dtardon@redhat.com>2016-11-13 19:02:31 +0100
commita21d24ca72b792c9fdd74894ebf773c72fc2b704 (patch)
tree25569a5264291f41592bdef49bbc593488f6fa57 /svl
parentebfe8bb2b2cfc3dba063260bf746db923a3693f2 (diff)
revert unintentionally committed lines
Change-Id: I5cb355af20f18e63fdfe45e5946a9281fd1fa084
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/IndexedStyleSheets.cxx5
1 files changed, 0 insertions, 5 deletions
diff --git a/svl/source/items/IndexedStyleSheets.cxx b/svl/source/items/IndexedStyleSheets.cxx
index fa68f494e916..6bc4ad0a56d1 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