mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
* Include all libraries in APP_FWK_LIBRARIES * Several fixes detected by Static Code Analysis * Remove unused code * Add .clang.tidy * Use QElapsedTimer * Use horizontalAdvance * Avoid | between enum of different classes * Avoid illegal character * Renaming and reorder of constructor initialization
24 lines
825 B
C++
24 lines
825 B
C++
#include "cafInternalPdmXmlFieldReaderWriter.h"
|
|
|
|
#include "cafInternalPdmFieldIoHelper.h"
|
|
|
|
namespace caf
|
|
{
|
|
//--------------------------------------------------------------------------------------------------
|
|
/// Specialized read function for QStrings, because the >> operator only can read word by word
|
|
//--------------------------------------------------------------------------------------------------
|
|
template <>
|
|
void PdmFieldReader<QString>::readFieldData( QString& field, QXmlStreamReader& xmlStream, PdmObjectFactory* )
|
|
{
|
|
PdmFieldIOHelper::skipComments( xmlStream );
|
|
if ( !xmlStream.isCharacters() ) return;
|
|
|
|
field = xmlStream.text().toString();
|
|
|
|
// Make stream point to end of element
|
|
xmlStream.readNext();
|
|
PdmFieldIOHelper::skipCharactersAndComments( xmlStream );
|
|
}
|
|
|
|
} // End of namespace caf
|