Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-11-23 03:27:02 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-11-23 09:40:10 +0300
commit2e348fd43ee2bc7285fe4461171d51f307dabf92 (patch)
tree7e12478710dc214033b2d3e724d48ab4e2b758b5 /source/blender/blenkernel/intern/text.c
parentbc8504cb4c93eb3aac22222f62966c13560a2bf6 (diff)
Cleanup: shadowing (blenkernel)
Diffstat (limited to 'source/blender/blenkernel/intern/text.c')
-rw-r--r--source/blender/blenkernel/intern/text.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/text.c b/source/blender/blenkernel/intern/text.c
index 988da05d35c..964599b0454 100644
--- a/source/blender/blenkernel/intern/text.c
+++ b/source/blender/blenkernel/intern/text.c
@@ -2115,7 +2115,7 @@ void txt_do_undo(Text *text)
{
int op = text->undo_buf[text->undo_pos];
int prev_flags;
- unsigned int linep, i;
+ unsigned int linep;
unsigned int uchar;
unsigned int curln, selln;
unsigned short curc, selc;
@@ -2184,6 +2184,8 @@ void txt_do_undo(Text *text)
break;
case UNDO_DBLOCK:
+ {
+ int i;
/* length of the string in the buffer */
linep = txt_undo_read_uint32(text->undo_buf, &text->undo_pos);
@@ -2213,8 +2215,10 @@ void txt_do_undo(Text *text)
text->undo_pos--;
break;
-
+ }
case UNDO_IBLOCK:
+ {
+ int i;
/* length of the string in the buffer */
linep = txt_undo_read_uint32(text->undo_buf, &text->undo_pos);
@@ -2252,6 +2256,7 @@ void txt_do_undo(Text *text)
text->undo_pos--;
break;
+ }
case UNDO_INDENT:
case UNDO_COMMENT:
case UNDO_DUPLICATE: