mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 01:25:39 +00:00
5e8f1716fc
Reviewed By: bestander Differential Revision: D3324351 fbshipit-source-id: 41fa18a23c8661440a7deff244c93278f418e1d9
22 lines
405 B
C++
22 lines
405 B
C++
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include <folly/FBString.h>
|
|
#include <string>
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
namespace detail {
|
|
// TODO(cjhopman): Once folly is updated, remove these.
|
|
|
|
inline std::string toStdString(std::string&& str) {
|
|
return std::move(str);
|
|
}
|
|
|
|
inline std::string toStdString(folly::fbstring&& str) {
|
|
return str.toStdString();
|
|
}
|
|
|
|
}}}
|