diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2013-02-02 11:29:34 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2013-02-02 11:29:34 +0000 |
| commit | 36dd99ae68825bb28b7428f8018fbfdfb003bf36 (patch) | |
| tree | 75847e9f59e50375696f5a5e2dc0a408dcdc2fef /src/dom/odf/odfdocument.cpp | |
| parent | Win32. Adding libcdr (Corel Draw) support. (diff) | |
| download | inkscape-36dd99ae68825bb28b7428f8018fbfdfb003bf36.tar.gz inkscape-36dd99ae68825bb28b7428f8018fbfdfb003bf36.zip | |
cppcheck
(bzr r12092)
Diffstat (limited to 'src/dom/odf/odfdocument.cpp')
| -rw-r--r-- | src/dom/odf/odfdocument.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/dom/odf/odfdocument.cpp b/src/dom/odf/odfdocument.cpp index 1e7a61e4e..cf460c964 100644 --- a/src/dom/odf/odfdocument.cpp +++ b/src/dom/odf/odfdocument.cpp @@ -44,18 +44,20 @@ namespace odf */ ImageData::ImageData(const std::string &fname, const std::vector<unsigned char> &buf) + : fileName (fname), + data (buf) + { - fileName = fname; - data = buf; } /** * */ ImageData::ImageData(const ImageData &other) + : fileName (other.fileName), + data (other.data) + { - fileName = other.fileName; - data = other.data; } /** @@ -120,10 +122,10 @@ OdfDocument::OdfDocument() : /** * */ -OdfDocument::OdfDocument(const OdfDocument &other) +OdfDocument::OdfDocument(const OdfDocument &other) : + content (other.content), + images (other.images) { - content = other.content; - images = other.images; } |
