Kaydet (Commit) 4aabef02 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

-Werror=catch-value= (GCC 8)

Change-Id: I63c264a39bcec5ebd80c73acb55c72713fd706e2
üst cb96678b
...@@ -1024,7 +1024,7 @@ void SwXCell::setPropertyValue(const OUString& rPropertyName, const uno::Any& aV ...@@ -1024,7 +1024,7 @@ void SwXCell::setPropertyValue(const OUString& rPropertyName, const uno::Any& aV
{ {
const std::array<SvxFrameDirection, 3> vDirs = { SvxFrameDirection::Horizontal_LR_TB, SvxFrameDirection::Horizontal_RL_TB, SvxFrameDirection::Vertical_RL_TB }; const std::array<SvxFrameDirection, 3> vDirs = { SvxFrameDirection::Horizontal_LR_TB, SvxFrameDirection::Horizontal_RL_TB, SvxFrameDirection::Vertical_RL_TB };
eDir = vDirs.at(aValue.get<sal_Int32>()); eDir = vDirs.at(aValue.get<sal_Int32>());
} catch(std::out_of_range) { } catch(std::out_of_range &) {
SAL_WARN("sw.uno", "unknown direction code, maybe it's a bitfield"); SAL_WARN("sw.uno", "unknown direction code, maybe it's a bitfield");
} }
SvxFrameDirectionItem aItem(eDir, RES_FRAMEDIR); SvxFrameDirectionItem aItem(eDir, RES_FRAMEDIR);
......
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