Kaydet (Commit) f3eeda3b authored tarafından Miklos Vajna's avatar Miklos Vajna

sc: fix -Werror=unused-variable in product builds

Change-Id: Id71236acb322e57f3e5af406874de4924c7524b9
üst 417ef821
...@@ -2421,6 +2421,7 @@ void ScGridWindow::LogicMouseButtonDown(const MouseEvent& rMouseEvent) ...@@ -2421,6 +2421,7 @@ void ScGridWindow::LogicMouseButtonDown(const MouseEvent& rMouseEvent)
// When we're not doing tiled rendering, then positions must be passed as pixels. // When we're not doing tiled rendering, then positions must be passed as pixels.
ScDocShell* pDocSh = pViewData->GetDocShell(); ScDocShell* pDocSh = pViewData->GetDocShell();
ScDocument& rDoc = pDocSh->GetDocument(); ScDocument& rDoc = pDocSh->GetDocument();
(void)rDoc;
assert(rDoc.GetDrawLayer()->isTiledRendering()); assert(rDoc.GetDrawLayer()->isTiledRendering());
MouseButtonDown(rMouseEvent); MouseButtonDown(rMouseEvent);
...@@ -2431,6 +2432,7 @@ void ScGridWindow::LogicMouseButtonUp(const MouseEvent& rMouseEvent) ...@@ -2431,6 +2432,7 @@ void ScGridWindow::LogicMouseButtonUp(const MouseEvent& rMouseEvent)
// When we're not doing tiled rendering, then positions must be passed as pixels. // When we're not doing tiled rendering, then positions must be passed as pixels.
ScDocShell* pDocSh = pViewData->GetDocShell(); ScDocShell* pDocSh = pViewData->GetDocShell();
ScDocument& rDoc = pDocSh->GetDocument(); ScDocument& rDoc = pDocSh->GetDocument();
(void)rDoc;
assert(rDoc.GetDrawLayer()->isTiledRendering()); assert(rDoc.GetDrawLayer()->isTiledRendering());
MouseButtonUp(rMouseEvent); MouseButtonUp(rMouseEvent);
......
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