comparison OrthancFramework/Sources/HttpServer/IWebDavBucket.h @ 4253:2221051b42df

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 15 Oct 2020 20:08:44 +0200
parents f047e2734655
children b873c8e24125
comparison
equal deleted inserted replaced
4252:f047e2734655 4253:2221051b42df
54 bool hasModificationTime_; 54 bool hasModificationTime_;
55 boost::posix_time::ptime creationTime_; 55 boost::posix_time::ptime creationTime_;
56 boost::posix_time::ptime modificationTime_; 56 boost::posix_time::ptime modificationTime_;
57 57
58 public: 58 public:
59 Resource(const std::string& displayName); 59 explicit Resource(const std::string& displayName);
60 60
61 virtual ~Resource() 61 virtual ~Resource()
62 { 62 {
63 } 63 }
64 64
91 private: 91 private:
92 uint64_t contentLength_; 92 uint64_t contentLength_;
93 MimeType mime_; 93 MimeType mime_;
94 94
95 public: 95 public:
96 File(const std::string& displayName); 96 explicit File(const std::string& displayName);
97 97
98 void SetContentLength(uint64_t contentLength) 98 void SetContentLength(uint64_t contentLength)
99 { 99 {
100 contentLength_ = contentLength; 100 contentLength_ = contentLength;
101 } 101 }
123 123
124 124
125 class Folder : public Resource 125 class Folder : public Resource
126 { 126 {
127 public: 127 public:
128 Folder(const std::string& displayName) : 128 explicit Folder(const std::string& displayName) :
129 Resource(displayName) 129 Resource(displayName)
130 { 130 {
131 } 131 }
132 132
133 virtual void Format(pugi::xml_node& node, 133 virtual void Format(pugi::xml_node& node,