C++ (Qt)class SomeClass {public: void someFunction (const std::string& data) { data_ = data; }private: std::string data_;}
C++ (Qt)class SomeClass {public: void someFunction (char* data, size_t dataSize) { data_.assign (data, dataSize); }private: std::string data_;}