Skip to content

Commit e439ff6

Browse files
committed
Make use of 'void' in case a function has no args.
1 parent 009db40 commit e439ff6

File tree

5 files changed

+167
-167
lines changed

5 files changed

+167
-167
lines changed

gnuplot-cpp.sln

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
2-
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.27004.2005
5-
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sample_project", "sample_project.vcxproj", "{903BC4A3-AD97-4569-8B6A-6A5D58768601}"
7-
EndProject
8-
Global
9-
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10-
Debug|Win32 = Debug|Win32
11-
Release|Win32 = Release|Win32
12-
EndGlobalSection
13-
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14-
{903BC4A3-AD97-4569-8B6A-6A5D58768601}.Debug|Win32.ActiveCfg = Debug|Win32
15-
{903BC4A3-AD97-4569-8B6A-6A5D58768601}.Debug|Win32.Build.0 = Debug|Win32
16-
{903BC4A3-AD97-4569-8B6A-6A5D58768601}.Release|Win32.ActiveCfg = Release|Win32
17-
{903BC4A3-AD97-4569-8B6A-6A5D58768601}.Release|Win32.Build.0 = Release|Win32
18-
EndGlobalSection
19-
GlobalSection(SolutionProperties) = preSolution
20-
HideSolutionNode = FALSE
21-
EndGlobalSection
22-
GlobalSection(ExtensibilityGlobals) = postSolution
23-
SolutionGuid = {BB6E9203-F689-4515-BCFD-047A8A3EDE0A}
24-
EndGlobalSection
25-
EndGlobal
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.27004.2005
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sample_project", "sample_project.vcxproj", "{903BC4A3-AD97-4569-8B6A-6A5D58768601}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Win32 = Debug|Win32
11+
Release|Win32 = Release|Win32
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{903BC4A3-AD97-4569-8B6A-6A5D58768601}.Debug|Win32.ActiveCfg = Debug|Win32
15+
{903BC4A3-AD97-4569-8B6A-6A5D58768601}.Debug|Win32.Build.0 = Debug|Win32
16+
{903BC4A3-AD97-4569-8B6A-6A5D58768601}.Release|Win32.ActiveCfg = Release|Win32
17+
{903BC4A3-AD97-4569-8B6A-6A5D58768601}.Release|Win32.Build.0 = Release|Win32
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {BB6E9203-F689-4515-BCFD-047A8A3EDE0A}
24+
EndGlobalSection
25+
EndGlobal

gnuplot_i.hpp

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class Gnuplot
9999
// ---------------------------------------------------
100100
///\brief get_program_path(); and popen();
101101
// ---------------------------------------------------
102-
void init();
102+
void init(void);
103103
// ---------------------------------------------------
104104
///\brief creates tmpfile and returns its name
105105
///
@@ -114,7 +114,7 @@ class Gnuplot
114114
///
115115
/// \return found the gnuplot path (yes == true, no == false)
116116
// ---------------------------------------------------------------------------------
117-
static bool get_program_path();
117+
static bool get_program_path(void);
118118

119119
// ---------------------------------------------------------------------------------
120120
///\brief checks if file is available
@@ -190,7 +190,7 @@ class Gnuplot
190190
const std::string &labelz = "z");
191191

192192
/// destructor: needed to delete temporary files
193-
~Gnuplot();
193+
~Gnuplot(void);
194194

195195

196196
//----------------------------------------------------------------------------------
@@ -216,7 +216,7 @@ class Gnuplot
216216
// show on screen or write to file
217217

218218
/// sets terminal type to terminal_std
219-
Gnuplot& showonscreen(); // window output is set by default (win/x11/aqua)
219+
Gnuplot& showonscreen(void); // window output is set by default (win/x11/aqua)
220220

221221
/// Saves a gnuplot to a file named filename. Defaults to saving pdf
222222
Gnuplot& savetofigure(const std::string &filename,
@@ -242,7 +242,7 @@ class Gnuplot
242242
///
243243
/// \return a reference to a gnuplot object
244244
// ----------------------------------------------------------------------
245-
inline Gnuplot& unset_smooth()
245+
inline Gnuplot& unset_smooth(void)
246246
{
247247
smooth.clear();
248248
return *this;
@@ -252,12 +252,12 @@ class Gnuplot
252252
Gnuplot& set_pointsize(const double pointsize = 1.0);
253253

254254
/// turns grid on/off
255-
inline Gnuplot& set_grid()
255+
inline Gnuplot& set_grid(void)
256256
{
257257
return cmd("set grid");
258258
}
259259
/// grid is not set by default
260-
inline Gnuplot& unset_grid()
260+
inline Gnuplot& unset_grid(void)
261261
{
262262
return cmd("unset grid");
263263
}
@@ -267,7 +267,7 @@ class Gnuplot
267267
///
268268
/// \return reference to the gnuplot object
269269
// -----------------------------------------------
270-
inline Gnuplot& set_multiplot()
270+
inline Gnuplot& set_multiplot(void)
271271
{
272272
return cmd("set multiplot");
273273
}
@@ -277,7 +277,7 @@ class Gnuplot
277277
///
278278
/// \return reference to the gnuplot object
279279
// -----------------------------------------------
280-
inline Gnuplot& unset_multiplot()
280+
inline Gnuplot& unset_multiplot(void)
281281
{
282282
return cmd("unset multiplot");
283283
}
@@ -292,7 +292,7 @@ class Gnuplot
292292
///
293293
/// \return reference to the gnuplot object
294294
// --------------------------------------------------------------------------
295-
Gnuplot& set_hidden3d()
295+
Gnuplot& set_hidden3d(void)
296296
{
297297
return cmd("set hidden3d");
298298
}
@@ -302,7 +302,7 @@ class Gnuplot
302302
///
303303
/// \return reference to the gnuplot object
304304
// ---------------------------------------------------------------------------
305-
inline Gnuplot& unset_hidden3d()
305+
inline Gnuplot& unset_hidden3d(void)
306306
{
307307
return cmd("unset hidden3d");
308308
}
@@ -315,7 +315,7 @@ class Gnuplot
315315
///
316316
/// \return reference to the gnuplot object
317317
// ------------------------------------------------------------------
318-
inline Gnuplot& unset_contour()
318+
inline Gnuplot& unset_contour(void)
319319
{
320320
return cmd("unset contour");
321321
}
@@ -325,7 +325,7 @@ class Gnuplot
325325
///
326326
/// \return reference to the gnuplot object
327327
// ------------------------------------------------------------------
328-
inline Gnuplot& set_surface()
328+
inline Gnuplot& set_surface(void)
329329
{
330330
return cmd("set surface");
331331
}
@@ -336,7 +336,7 @@ class Gnuplot
336336
///
337337
/// \return reference to the gnuplot object
338338
// ------------------------------------------------------------------
339-
inline Gnuplot& unset_surface()
339+
inline Gnuplot& unset_surface(void)
340340
{
341341
return cmd("unset surface");
342342
}
@@ -352,7 +352,7 @@ class Gnuplot
352352
///
353353
/// \return reference to the gnuplot object
354354
// ------------------------------------------------------------------
355-
inline Gnuplot& unset_legend()
355+
inline Gnuplot& unset_legend(void)
356356
{
357357
return cmd("unset key");
358358
}
@@ -406,7 +406,7 @@ class Gnuplot
406406
///
407407
/// \return reference to the gnuplot object
408408
// -----------------------------------------------
409-
inline Gnuplot& set_xautoscale()
409+
inline Gnuplot& set_xautoscale(void)
410410
{
411411
(void)cmd("set xrange restore");
412412
return cmd("set autoscale x");
@@ -417,7 +417,7 @@ class Gnuplot
417417
///
418418
/// \return reference to the gnuplot object
419419
// -----------------------------------------------
420-
inline Gnuplot& set_yautoscale()
420+
inline Gnuplot& set_yautoscale(void)
421421
{
422422
(void)cmd("set yrange restore");
423423
return cmd("set autoscale y");
@@ -428,7 +428,7 @@ class Gnuplot
428428
///
429429
/// \return reference to the gnuplot object
430430
// -----------------------------------------------
431-
inline Gnuplot& set_zautoscale()
431+
inline Gnuplot& set_zautoscale(void)
432432
{
433433
(void)cmd("set zrange restore");
434434
return cmd("set autoscale z");
@@ -447,7 +447,7 @@ class Gnuplot
447447
///
448448
/// \return reference to the gnuplot object
449449
// -----------------------------------------------
450-
inline Gnuplot& unset_xlogscale()
450+
inline Gnuplot& unset_xlogscale(void)
451451
{
452452
return cmd("unset logscale x");
453453
}
@@ -457,7 +457,7 @@ class Gnuplot
457457
///
458458
/// \return reference to the gnuplot object
459459
// -----------------------------------------------
460-
inline Gnuplot& unset_ylogscale()
460+
inline Gnuplot& unset_ylogscale(void)
461461
{
462462
return cmd("unset logscale y");
463463
}
@@ -467,7 +467,7 @@ class Gnuplot
467467
///
468468
/// \return reference to the gnuplot object
469469
// -----------------------------------------------
470-
inline Gnuplot& unset_zlogscale()
470+
inline Gnuplot& unset_zlogscale(void)
471471
{
472472
return cmd("unset logscale z");
473473
}
@@ -582,18 +582,18 @@ class Gnuplot
582582
}
583583

584584
/// resets a gnuplot session (next plot will erase previous ones)
585-
Gnuplot& reset_plot();
585+
Gnuplot& reset_plot(void);
586586

587587
/// resets a gnuplot session and sets all variables to default
588-
Gnuplot& reset_all();
588+
Gnuplot& reset_all(void);
589589

590590
/// deletes temporary files
591-
void remove_tmpfiles();
591+
void remove_tmpfiles(void);
592592

593593
/// \brief Is the gnuplot session valid ??
594594
///
595595
/// \return true if valid, false if not
596-
inline bool is_valid() const
596+
inline bool is_valid(void) const
597597
{
598598
return valid;
599599
}
@@ -916,7 +916,7 @@ void stringtok (Container &container,
916916
//
917917
// Destructor: needed to delete temporary files
918918
//
919-
Gnuplot::~Gnuplot()
919+
Gnuplot::~Gnuplot(void)
920920
{
921921
// remove_tmpfiles();
922922

@@ -934,7 +934,7 @@ Gnuplot::~Gnuplot()
934934
//
935935
// Resets a gnuplot session (next plot will erase previous ones)
936936
//
937-
Gnuplot& Gnuplot::reset_plot()
937+
Gnuplot& Gnuplot::reset_plot(void)
938938
{
939939
// remove_tmpfiles();
940940

@@ -948,7 +948,7 @@ Gnuplot& Gnuplot::reset_plot()
948948
//
949949
// resets a gnuplot session and sets all variables to default
950950
//
951-
Gnuplot& Gnuplot::reset_all()
951+
Gnuplot& Gnuplot::reset_all(void)
952952
{
953953
// remove_tmpfiles();
954954

@@ -1037,7 +1037,7 @@ Gnuplot& Gnuplot::set_smooth(const std::string &stylestr)
10371037
//
10381038
// sets terminal type to windows / x11
10391039
//
1040-
Gnuplot& Gnuplot::showonscreen()
1040+
Gnuplot& Gnuplot::showonscreen(void)
10411041
{
10421042
(void)cmd("set output");
10431043
return cmd("set terminal " + Gnuplot::terminal_std);
@@ -1681,7 +1681,7 @@ Gnuplot& Gnuplot::cmd(const std::string &cmdstr)
16811681
//
16821682
// Opens up a gnuplot session, ready to receive commands
16831683
//
1684-
void Gnuplot::init()
1684+
void Gnuplot::init(void)
16851685
{
16861686
// char * getenv ( const char * name ); get value of environment variable
16871687
// Retrieves a C string containing the value of the environment variable
@@ -1741,7 +1741,7 @@ void Gnuplot::init()
17411741
//
17421742
// Find out if a command lives in m_sGNUPlotPath or in PATH
17431743
//
1744-
bool Gnuplot::get_program_path()
1744+
bool Gnuplot::get_program_path(void)
17451745
{
17461746
//
17471747
// first look in m_sGNUPlotPath for Gnuplot
@@ -1915,7 +1915,7 @@ std::string Gnuplot::create_tmpfile(std::ofstream &tmp)
19151915
return name;
19161916
}
19171917

1918-
void Gnuplot::remove_tmpfiles()
1918+
void Gnuplot::remove_tmpfiles(void)
19191919
{
19201920
if ((tmpfile_list).size() > 0)
19211921
{

0 commit comments

Comments
 (0)