anthonyfieroni added inline comments.

INLINE COMMENTS

> kjs_display.cpp:19
> +
> +static KJSPrototype *g_displayProto;
> +

use unique_ptr

> kjs_display.cpp:35-38
> +    static bool initialized = false;
> +    if ( initialized )
> +        return;
> +    initialized = true;

if (g_displayProto)
      return;

> kjs_display.cpp:40
> +
> +    g_displayProto = new KJSPrototype();
> +

g_displayProto.reset(new KJSPrototype);

REPOSITORY
  R223 Okular

REVISION DETAIL
  https://phabricator.kde.org/D21202

To: joaonetto, aacid, #okular
Cc: anthonyfieroni, sander, okular-devel, joaonetto, tfella, ngraham, 
darcyshen, aacid

Reply via email to