Kaydet (Commit) ff1c479d authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

simplify exception

Change-Id: I98e9ee171bf2b207696be7db90ff3e3ce83b06ed
üst 4b7f140a
...@@ -1057,11 +1057,7 @@ uno::Any SwXCell::getPropertyValue(const OUString& rPropertyName) ...@@ -1057,11 +1057,7 @@ uno::Any SwXCell::getPropertyValue(const OUString& rPropertyName)
return uno::Any(); return uno::Any();
auto pEntry(m_pPropSet->getPropertyMap().getByName(rPropertyName)); auto pEntry(m_pPropSet->getPropertyMap().getByName(rPropertyName));
if(!pEntry) if(!pEntry)
{ throw beans::UnknownPropertyException(rPropertyName, static_cast<cppu::OWeakObject*>(this));
beans::UnknownPropertyException aEx;
aEx.Message = rPropertyName;
throw(aEx);
}
switch(pEntry->nWID) switch(pEntry->nWID)
{ {
case FN_UNO_CELL_ROW_SPAN: case FN_UNO_CELL_ROW_SPAN:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment