Skip to content

Commit

Permalink
potentially uninitialized local variable 'propertyId' used
Browse files Browse the repository at this point in the history
  • Loading branch information
gleblebedev committed Oct 5, 2023
1 parent c9a527e commit 30686d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Samples/basic/demo/data/demo.rml
Original file line number Diff line number Diff line change
Expand Up @@ -615,14 +615,14 @@ progress {
<body template="window">

<tabset id="menu">
<tab>Welcome</tab>
<tab class="autonav">Welcome</tab>
<panel id="welcome">
<p class="title" style="margin-top: 1.8em;">RmlUi 😍</p>
<p>Have fun fiddling about in this demo.</p>
<p>Press 'F8' to open up the debugger.</p>
<p class="title" style="margin-top: 1em;">🎉</p>
</panel>
<tab>Decorators</tab>
<tab class="autonav">Decorators</tab>
<panel id="decorators">
<h1>Gradient decorator</h1>
<p>The 'gradient' decorator renders a color gradient in the vertical or horizontal direction.</p>
Expand Down Expand Up @@ -759,7 +759,7 @@ progress {
<img src="../../../assets/invader.tga" rect="0 0 500 435" style="margin-top: 10dp; margin-bottom: 10dp;"/>
<p>is used to render most sprites in this demo. Sprites can be used in decorators and image elements as if they were separate images.</p>
</panel>
<tab>Font effects</tab>
<tab class="autonav">Font effects</tab>
<panel id="font_effects">
<h1>None</h1>
<div class="original">RmlUi 😍</div>
Expand All @@ -778,7 +778,7 @@ progress {
<div class="blur_small">RmlUi 😍</div>
<div class="blur_big">RmlUi 😍</div>
</panel>
<tab>Animations</tab>
<tab class="autonav">Animations</tab>
<panel id="animations">

<h1>Transitions</h1>
Expand Down Expand Up @@ -892,7 +892,7 @@ progress {
</div>
</form>
</panel>
<tab>Sandbox</tab>
<tab class="autonav">Sandbox</tab>
<panel id="sandbox">
<table>
<col id="col_rml_source"/>
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/ElementDocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ void ElementDocument::ProcessDefaultAction(Event& event)
key_identifier == Input::KI_DOWN)
{
SpatialSearchDirection direction{};
PropertyId propertyId;
PropertyId propertyId = PropertyId::NavLeft;
switch (key_identifier)
{
case Input::KI_LEFT:
Expand Down

0 comments on commit 30686d2

Please sign in to comment.