From 949f3099f05d642ca4ee4b6ad676152bbea04824 Mon Sep 17 00:00:00 2001 From: Bjoern Michaelsen Date: Fri, 21 Nov 2014 12:56:13 +0100 Subject: dead init (clang) Change-Id: I7ad48c2a7bd1a63ebb9bda41fb5c28b19e7e6eab --- sw/source/uibase/wrtsh/move.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sw/source') diff --git a/sw/source/uibase/wrtsh/move.cxx b/sw/source/uibase/wrtsh/move.cxx index 64a390e056a5..7916c271e039 100644 --- a/sw/source/uibase/wrtsh/move.cxx +++ b/sw/source/uibase/wrtsh/move.cxx @@ -520,10 +520,9 @@ bool SwWrtShell::PopCrsr(bool bUpdate, bool bSelect) void SwWrtShell::_ResetCursorStack() { - CrsrStack *pTmp = pCrsrStack; while(pCrsrStack) { - pTmp = pCrsrStack->pNext; + CrsrStack* const pTmp = pCrsrStack->pNext; delete pCrsrStack; pCrsrStack = pTmp; } -- cgit