RagePhoto: dont take reference from save function
This commit is contained in:
parent
0611a368a6
commit
c55b99e23f
1 changed files with 1 additions and 1 deletions
|
@ -986,7 +986,7 @@ const std::string RagePhoto::save(bool *ok)
|
|||
bool RagePhoto::saveFile(const char *filename, uint32_t photoFormat)
|
||||
{
|
||||
bool ok;
|
||||
const std::string &sdata = save(photoFormat, &ok);
|
||||
const std::string sdata = save(photoFormat, &ok);
|
||||
if (ok) {
|
||||
std::ofstream ofs(filename, std::ios::out | std::ios::binary | std::ios::trunc);
|
||||
if (!ofs.is_open()) {
|
||||
|
|
Loading…
Reference in a new issue