Skip to content

Commit d86c12d

Browse files
committed
Added LGTM to readme and fixed 1 alerts
1 parent d5d627d commit d86c12d

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# wsjcpp-core
22

33
[![Build Status](https://api.travis-ci.org/wsjcpp/wsjcpp-core.svg?branch=master)](https://travis-ci.org/wsjcpp/wsjcpp-core) [![Github Stars](https://img.shields.io/github/stars/wsjcpp/wsjcpp-core.svg?label=github%20%E2%98%85)](https://github.com/wsjcpp/wsjcpp-core/stargazers) [![Github Stars](https://img.shields.io/github/contributors/wsjcpp/wsjcpp-core.svg)](https://github.com/wsjcpp/wsjcpp-core/) [![Github Forks](https://img.shields.io/github/forks/wsjcpp/wsjcpp-core.svg?label=github%20forks)](https://github.com/wsjcpp/wsjcpp-core/network/members)
4+
[![Language grade: C/C++](https://img.shields.io/lgtm/grade/cpp/g/wsjcpp/wsjcpp-core.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/wsjcpp/wsjcpp-core/context:cpp) [![Total alerts](https://img.shields.io/lgtm/alerts/g/wsjcpp/wsjcpp-core.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/wsjcpp/wsjcpp-core/alerts/)
45

56
Basic utils for wsjcpp
67

src/wsjcpp_resources_manager.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
class WsjcppResourceFile {
1010
public:
1111
WsjcppResourceFile();
12-
virtual const std::string &getFilename() = 0;
13-
virtual const std::string &getPackAs() = 0;
14-
virtual const int getBufferSize() = 0;
15-
virtual const char *getBuffer() = 0;
12+
virtual const std::string &getFilename() const = 0;
13+
virtual const std::string &getPackAs() const = 0;
14+
virtual int getBufferSize() const = 0;
15+
virtual const char *getBuffer() const = 0;
1616
};
1717

1818
extern std::vector<WsjcppResourceFile*> *g_pWsjcppResourceFiles;

unit-tests.wsjcpp/src/resources.wsjcpp/html_images_points_svg_path_835d61.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22

33
REGISTRY_WSJCPP_RESOURCE_FILE(RES_html_images_points_svg)
44

5-
const std::string &RES_html_images_points_svg::getFilename() {
5+
const std::string &RES_html_images_points_svg::getFilename() const {
66
static const std::string s = "html/images/points.svg";
77
return s;
88
}
99

10-
const std::string &RES_html_images_points_svg::getPackAs() {
10+
const std::string &RES_html_images_points_svg::getPackAs() const {
1111
static const std::string s = "text";
1212
return s;
1313
}
1414

15-
const int RES_html_images_points_svg::getBufferSize() {
15+
int RES_html_images_points_svg::getBufferSize() const {
1616
return 2979;
1717
}
1818

19-
const char *RES_html_images_points_svg::getBuffer() {
19+
const char *RES_html_images_points_svg::getBuffer() const {
2020
static const std::string sRet = // size: 2979
2121
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n"
2222
"<!-- Created with Inkscape (http://www.inkscape.org/) -->\n"

unit-tests.wsjcpp/src/resources.wsjcpp/html_images_points_svg_path_835d61.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
class RES_html_images_points_svg : public WsjcppResourceFile {
44
public:
5-
virtual const std::string &getFilename();
6-
virtual const std::string &getPackAs();
7-
virtual const int getBufferSize();
8-
virtual const char *getBuffer();
5+
virtual const std::string &getFilename() const override;
6+
virtual const std::string &getPackAs() const override;
7+
virtual int getBufferSize() const override;
8+
virtual const char *getBuffer() const override;
99
};

0 commit comments

Comments
 (0)