changeset 26443:6dfb842362dd stable

text-renderer.h: Fix static analyzer detected issues (bug #55347). * text-renderer.h (string (const string& s)): Initialize z data member from s. * text-renderer.h (string operator =): Initialize z data member.
author Rik <rik@octave.org>
date Fri, 04 Jan 2019 21:55:07 -0800
parents 3d1a335fb9ce
children 5c91daa02f87
files libinterp/corefcn/text-renderer.h
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/text-renderer.h	Fri Jan 04 21:31:20 2019 -0800
+++ b/libinterp/corefcn/text-renderer.h	Fri Jan 04 21:55:07 2019 -0800
@@ -135,7 +135,7 @@
 
       string (const string& s)
         : str (s.str), family (s.family), fnt (s.fnt), x (s.x), y (s.y),
-          xdata (s.xdata), code (s.code), color (s.color)
+          z (s.z), xdata (s.xdata), code (s.code), color (s.color)
       { }
 
       ~string (void) = default;
@@ -149,6 +149,7 @@
             fnt = s.fnt;
             x = s.x;
             y = s.y;
+            z = s.z;
             xdata = s.xdata;
             code = s.code;
             color = s.color;