Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions src/OpenColorIO/Op.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
// SPDX-License-Identifier: BSD-3-Clause
// Copyright Contributors to the OpenColorIO Project.

#include <cstring>
#include <string>
#include <sstream>

#include <pystring.h>

#include <OpenColorIO/OpenColorIO.h>

#include "Logging.h"
Expand Down Expand Up @@ -473,16 +471,14 @@ std::ostream& operator<< (std::ostream & os, const Op & op)
std::string SerializeOpVec(const OpRcPtrVec & ops, int indent)
{
std::ostringstream oss;
const std::string indentStr(indent, ' ');

for (OpRcPtrVec::size_type idx = 0, size = ops.size(); idx < size; ++idx)
OpRcPtrVec::size_type idx = 0;
for (const auto & op : ops)
{
const OpRcPtr & op = ops[idx];

oss << pystring::mul(" ", indent);
oss << "Op " << idx << ": " << *op << " ";
oss << op->getCacheID();

oss << "\n";
oss << indentStr << "Op " << idx << ": " << *op << " "
<< op->getCacheID() << "\n";
++idx;
}

return oss.str();
Expand Down
1 change: 0 additions & 1 deletion src/OpenColorIO/Op.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#ifndef INCLUDED_OCIO_OP_H
#define INCLUDED_OCIO_OP_H

#include <sstream>
#include <vector>

#include <OpenColorIO/OpenColorIO.h>
Expand Down
Loading
Loading