Skip to content

Commit 11b642f

Browse files
committed
viz: eliminate warnings from tutorial code
1 parent 6fb75c6 commit 11b642f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

samples/cpp/tutorial_code/viz/creating_widgets.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ using namespace std;
2424
* @function help
2525
* @brief Display instructions to use this tutorial program
2626
*/
27-
void help()
27+
static void help()
2828
{
2929
cout
3030
<< "--------------------------------------------------------------------------" << endl

samples/cpp/tutorial_code/viz/launching_viz.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ using namespace std;
1414
* @function help
1515
* @brief Display instructions to use this tutorial program
1616
*/
17-
void help()
17+
static void help()
1818
{
1919
cout
2020
<< "--------------------------------------------------------------------------" << endl

samples/cpp/tutorial_code/viz/transformations.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ using namespace std;
1515
* @function help
1616
* @brief Display instructions to use this tutorial program
1717
*/
18-
void help()
18+
static void help()
1919
{
2020
cout
2121
<< "--------------------------------------------------------------------------" << endl
@@ -31,7 +31,7 @@ void help()
3131
* @function cvcloud_load
3232
* @brief load bunny.ply
3333
*/
34-
Mat cvcloud_load()
34+
static Mat cvcloud_load()
3535
{
3636
Mat cloud(1, 1889, CV_32FC3);
3737
ifstream ifs("bunny.ply");

samples/cpp/tutorial_code/viz/widget_pose.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ using namespace std;
1515
* @function help
1616
* @brief Display instructions to use this tutorial program
1717
*/
18-
void help()
18+
static void help()
1919
{
2020
cout
2121
<< "--------------------------------------------------------------------------" << endl

0 commit comments

Comments
 (0)