Skip to content
This repository has been archived by the owner on Nov 29, 2020. It is now read-only.

Fix some issues reported by LGTM #312

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

stweil
Copy link
Contributor

@stweil stweil commented Jun 28, 2019

LGTM recommendation:

    This parameter of type 2 Values is 72 bytes - consider passing a const pointer/reference instead.

The parameters pln2img and img2pln are too large to be efficiently passed by value.
In addition, the const qualifiers were missing in the header file.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This fixes a hint from LGTM:

    Functions should be declared at file scope, not inside blocks.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
LGTM warnings:

    The 'const' modifier has no effect on return types.
    The 'const' modifying the return type can be removed.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
LGTM warnings:

    Comparison is always false because sf >= 0.
    Comparison is always false because ef >= 0.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant