Uploaded image for project: 'Axis-C++'
  1. Axis-C++
  2. AXISCPP-1085

AxisCPP config classes const correctness

    XMLWordPrintableJSON

Details

    Description

      a minor "const correctness" issue which the compiler on my system (gcc 4.4.3) complained about:

      AxisCPPConfigDefaults, AxisCPPConfigDefaultsImpl, and AxisConfig have methods which accept and return "char " instead of "const char". With the char*, my calls such as this:

      AxisCPPConfigDefaults config;

      config.setAxisHome(".");

      Cause a warning about casting a "const char*" to a "char*". Since parameters are copied to string these methods should really be defined with "const char*".

      Attachments

        Activity

          People

            nadiramra Nadir K. Amra
            nadiramra Nadir K. Amra
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: