diff options
-rw-r--r-- | sw/source/filter/ww8/rtfsdrexport.cxx | 6 | ||||
-rw-r--r-- | sw/source/filter/ww8/wrtww8.cxx | 6 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8par2.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8par3.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8scan.cxx | 2 | ||||
-rw-r--r-- | vcl/source/filter/png/pngwrite.cxx | 4 | ||||
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl.cxx | 10 | ||||
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl2.cxx | 24 | ||||
-rw-r--r-- | vcl/source/opengl/OpenGLHelper.cxx | 6 | ||||
-rw-r--r-- | vcl/unx/generic/fontmanager/fontmanager.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/generic/gdi/gdiimpl.cxx | 6 | ||||
-rw-r--r-- | vcl/unx/generic/print/glyphset.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/generic/window/salframe.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/gtk/gtksalframe.cxx | 4 | ||||
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkframe.cxx | 4 |
15 files changed, 41 insertions, 41 deletions
diff --git a/sw/source/filter/ww8/rtfsdrexport.cxx b/sw/source/filter/ww8/rtfsdrexport.cxx index 4a22b3ca99b3..418164485566 100644 --- a/sw/source/filter/ww8/rtfsdrexport.cxx +++ b/sw/source/filter/ww8/rtfsdrexport.cxx @@ -281,9 +281,9 @@ void RtfSdrExport::Commit(EscherPropertyContainer& rProps, const tools::Rectangl && rProps.GetOpt(ESCHER_Prop_pSegmentInfo, aSegments) && aVertices.nProp.size() >= 6 && aSegments.nProp.size() >= 6) { - const sal_uInt8* pVerticesIt = &aVertices.nProp[0] + 6; + const sal_uInt8* pVerticesIt = aVertices.nProp.data() + 6; std::size_t nVerticesPos = 6; - const sal_uInt8* pSegmentIt = &aSegments.nProp[0]; + const sal_uInt8* pSegmentIt = aSegments.nProp.data(); OStringBuffer aSegmentInfo(512); OStringBuffer aVerticies(512); @@ -441,7 +441,7 @@ void RtfSdrExport::Commit(EscherPropertyContainer& rProps, const tools::Rectangl .append(SAL_NEWLINE_STRING); int nHeaderSize = 25; // The first bytes are WW8-specific, we're only interested in the PNG - aBuf.append(msfilter::rtfutil::WriteHex(&rOpt.nProp[0] + nHeaderSize, + aBuf.append(msfilter::rtfutil::WriteHex(rOpt.nProp.data() + nHeaderSize, rOpt.nProp.size() - nHeaderSize)); aBuf.append('}'); m_aShapeProps.insert( diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx index c737156568d9..094e6b3ec68c 100644 --- a/sw/source/filter/ww8/wrtww8.cxx +++ b/sw/source/filter/ww8/wrtww8.cxx @@ -1774,7 +1774,7 @@ void SwWW8Writer::WriteString16(SvStream& rStrm, const OUString& rStr, //vectors are guaranteed to have contiguous memory, so we can do //this while migrating away from WW8Bytes. Meyers Effective STL, item 16 if (!aBytes.empty()) - rStrm.WriteBytes(&aBytes[0], aBytes.size()); + rStrm.WriteBytes(aBytes.data(), aBytes.size()); } void SwWW8Writer::WriteString_xstz(SvStream& rStrm, const OUString& rStr, bool bAddZero) @@ -1784,7 +1784,7 @@ void SwWW8Writer::WriteString_xstz(SvStream& rStrm, const OUString& rStr, bool b SwWW8Writer::InsAsString16(aBytes, rStr); if (bAddZero) SwWW8Writer::InsUInt16(aBytes, 0); - rStrm.WriteBytes(&aBytes[0], aBytes.size()); + rStrm.WriteBytes(aBytes.data(), aBytes.size()); } void SwWW8Writer::WriteString8(SvStream& rStrm, const OUString& rStr, @@ -1797,7 +1797,7 @@ void SwWW8Writer::WriteString8(SvStream& rStrm, const OUString& rStr, //vectors are guaranteed to have contiguous memory, so we can do ////this while migrating away from WW8Bytes. Meyers Effective STL, item 16 if (!aBytes.empty()) - rStrm.WriteBytes(&aBytes[0], aBytes.size()); + rStrm.WriteBytes(aBytes.data(), aBytes.size()); } void WW8Export::WriteStringAsPara( const OUString& rText ) diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx index 3f02c4c7ba49..65c116c672eb 100644 --- a/sw/source/filter/ww8/ww8par2.cxx +++ b/sw/source/filter/ww8/ww8par2.cxx @@ -4456,7 +4456,7 @@ void WW8RStyle::ImportOldFormatStyles() true); if (!aConvertedChpx[stcp].empty()) - ImportSprms(&(aConvertedChpx[stcp][0]), + ImportSprms(aConvertedChpx[stcp].data(), static_cast< short >(aConvertedChpx[stcp].size()), false); diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx index 5b79f9860d01..b970f29ac677 100644 --- a/sw/source/filter/ww8/ww8par3.cxx +++ b/sw/source/filter/ww8/ww8par3.cxx @@ -1867,7 +1867,7 @@ void SwWW8ImplReader::RegisterNumFormatOnTextNode(sal_uInt16 nCurrentLFO, { std::unique_ptr<SfxItemSet> xOldCurrentItemSet(SetCurrentItemSet(std::move(xListIndent))); - sal_uInt8* pSprms1 = &aParaSprms[0]; + sal_uInt8* pSprms1 = aParaSprms.data(); while (0 < nLen) { sal_uInt16 nL1 = ImportSprm(pSprms1, nLen); diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx index c2a43bab3d5e..cfbbd03b3401 100644 --- a/sw/source/filter/ww8/ww8scan.cxx +++ b/sw/source/filter/ww8/ww8scan.cxx @@ -2682,7 +2682,7 @@ WW8PLCFx_Fc_FKP::WW8Fkp::WW8Fkp(const WW8Fib& rFib, SvStream* pSt, if (aEntry.mnLen) { aEntry.mpData = new sal_uInt8[aEntry.mnLen]; - memcpy(aEntry.mpData, &(aSprms[0]), aEntry.mnLen); + memcpy(aEntry.mpData, aSprms.data(), aEntry.mnLen); aEntry.mbMustDelete = true; } } diff --git a/vcl/source/filter/png/pngwrite.cxx b/vcl/source/filter/png/pngwrite.cxx index 38e7617bbca2..3d2de8aae5e4 100644 --- a/vcl/source/filter/png/pngwrite.cxx +++ b/vcl/source/filter/png/pngwrite.cxx @@ -281,11 +281,11 @@ bool PNGWriterImpl::Write(SvStream& rOStm) sal_uInt32 nCRC = rtl_crc32(0, &nType, 4); sal_uInt32 nDataSize = chunk.aData.size(); if (nDataSize) - nCRC = rtl_crc32(nCRC, &chunk.aData[0], nDataSize); + nCRC = rtl_crc32(nCRC, chunk.aData.data(), nDataSize); rOStm.WriteUInt32(nDataSize); rOStm.WriteUInt32(chunk.nType); if (nDataSize) - rOStm.WriteBytes(&chunk.aData[0], nDataSize); + rOStm.WriteBytes(chunk.aData.data(), nDataSize); rOStm.WriteUInt32(nCRC); } rOStm.SetEndian(nOldMode); diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index 57b156a14315..54c891ca6448 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -2932,7 +2932,7 @@ bool PDFWriterImpl::emitFonts() sal_Int32 nFontDescriptor = emitFontDescriptor( subset.first, aSubsetInfo, s_subset.m_nFontID, nFontStream ); if( nToUnicodeStream ) - nToUnicodeStream = createToUnicodeCMap( pEncoding, &aCodeUnits[0], pCodeUnitsPerGlyph, pEncToUnicodeIndex, nGlyphs ); + nToUnicodeStream = createToUnicodeCMap( pEncoding, aCodeUnits.data(), pCodeUnitsPerGlyph, pEncToUnicodeIndex, nGlyphs ); sal_Int32 nFontObject = createObject(); if ( !updateObject( nFontObject ) ) return false; @@ -5153,9 +5153,9 @@ sal_Int32 PDFWriterImpl::emitOutputIntent() if (!nBytesNeeded) return 0; std::vector<unsigned char> aBuffer(nBytesNeeded); - cmsSaveProfileToMem(hProfile, &aBuffer[0], &nBytesNeeded); + cmsSaveProfileToMem(hProfile, aBuffer.data(), &nBytesNeeded); cmsCloseProfile(hProfile); - bool written = writeBuffer( &aBuffer[0], static_cast<sal_Int32>(aBuffer.size()) ); + bool written = writeBuffer( aBuffer.data(), static_cast<sal_Int32>(aBuffer.size()) ); disableStreamEncryption(); endCompression(); sal_uInt64 nEndStreamPos = 0; @@ -5411,9 +5411,9 @@ bool PDFWriterImpl::emitTrailer() // emit the owner password, must not be encrypted aLineS.append( "/O(" ); - appendLiteralString( reinterpret_cast<char*>(&m_aContext.Encryption.OValue[0]), sal_Int32(m_aContext.Encryption.OValue.size()), aLineS ); + appendLiteralString( reinterpret_cast<char*>(m_aContext.Encryption.OValue.data()), sal_Int32(m_aContext.Encryption.OValue.size()), aLineS ); aLineS.append( ")/U(" ); - appendLiteralString( reinterpret_cast<char*>(&m_aContext.Encryption.UValue[0]), sal_Int32(m_aContext.Encryption.UValue.size()), aLineS ); + appendLiteralString( reinterpret_cast<char*>(m_aContext.Encryption.UValue.data()), sal_Int32(m_aContext.Encryption.UValue.size()), aLineS ); aLineS.append( ")/P " );// the permission set aLineS.append( m_nAccessPermissions ); aLineS.append( ">>\nendobj\n\n" ); diff --git a/vcl/source/gdi/pdfwriter_impl2.cxx b/vcl/source/gdi/pdfwriter_impl2.cxx index eb62f65a69eb..5e5c0e5fbf6a 100644 --- a/vcl/source/gdi/pdfwriter_impl2.cxx +++ b/vcl/source/gdi/pdfwriter_impl2.cxx @@ -1163,7 +1163,7 @@ void PDFWriterImpl::checkAndEnableStreamEncryption( sal_Int32 nObject ) // the other location of m_nEncryptionKey is already set to 0, our fixed generation number // do the MD5 hash ::std::vector<unsigned char> const nMD5Sum(::comphelper::Hash::calculateHash( - &m_aContext.Encryption.EncryptionKey[0], i+2, ::comphelper::HashType::MD5)); + m_aContext.Encryption.EncryptionKey.data(), i+2, ::comphelper::HashType::MD5)); // the i+2 to take into account the generation number, always zero // initialize the RC4 with the key // key length: see algorithm 3.1, step 4: (N+5) max 16 @@ -1183,7 +1183,7 @@ void PDFWriterImpl::enableStringEncryption( sal_Int32 nObject ) // do the MD5 hash // the i+2 to take into account the generation number, always zero ::std::vector<unsigned char> const nMD5Sum(::comphelper::Hash::calculateHash( - &m_aContext.Encryption.EncryptionKey[0], i+2, ::comphelper::HashType::MD5)); + m_aContext.Encryption.EncryptionKey.data(), i+2, ::comphelper::HashType::MD5)); // initialize the RC4 with the key // key length: see algorithm 3.1, step 4: (N+5) max 16 rtl_cipher_initARCFOUR( m_aCipher, rtl_Cipher_DirectionEncode, nMD5Sum.data(), m_nRC4KeyLength, nullptr, 0 ); @@ -1314,7 +1314,7 @@ bool PDFWriterImpl::computeEncryptionKey( EncHashTransporter* i_pTransporter, vc { //step 3 if( ! io_rProperties.OValue.empty() ) - pDigest->update(&io_rProperties.OValue[0], io_rProperties.OValue.size()); + pDigest->update(io_rProperties.OValue.data(), io_rProperties.OValue.size()); else bSuccess = false; //Step 4 @@ -1328,7 +1328,7 @@ bool PDFWriterImpl::computeEncryptionKey( EncHashTransporter* i_pTransporter, vc pDigest->update(nPerm, sizeof(nPerm)); //step 5, get the document ID, binary form - pDigest->update(&io_rProperties.DocumentIdentifier[0], io_rProperties.DocumentIdentifier.size()); + pDigest->update(io_rProperties.DocumentIdentifier.data(), io_rProperties.DocumentIdentifier.size()); //get the digest nMD5Sum = pDigest->finalize(); @@ -1396,7 +1396,7 @@ bool PDFWriterImpl::computeODictionaryValue( const sal_uInt8* i_pPaddedOwnerPass { // encrypt the user password using the key set above rtl_cipher_encodeARCFOUR( aCipher, i_pPaddedUserPassword, ENCRYPTED_PWD_SIZE, // the data to be encrypted - &io_rOValue[0], sal_Int32(io_rOValue.size()) ); //encrypted data + io_rOValue.data(), sal_Int32(io_rOValue.size()) ); //encrypted data //Step 7, only if 128 bit if( i_nKeyLength == SECUR_128BIT_KEY ) { @@ -1416,8 +1416,8 @@ bool PDFWriterImpl::computeODictionaryValue( const sal_uInt8* i_pPaddedOwnerPass bSuccess = false; break; } - rtl_cipher_encodeARCFOUR( aCipher, &io_rOValue[0], sal_Int32(io_rOValue.size()), // the data to be encrypted - &io_rOValue[0], sal_Int32(io_rOValue.size()) ); // encrypted data, can be the same as the input, encrypt "in place" + rtl_cipher_encodeARCFOUR( aCipher, io_rOValue.data(), sal_Int32(io_rOValue.size()), // the data to be encrypted + io_rOValue.data(), sal_Int32(io_rOValue.size()) ); // encrypted data, can be the same as the input, encrypt "in place" //step 8, store in class data member } } @@ -1466,14 +1466,14 @@ bool PDFWriterImpl::computeUDictionaryValue( EncHashTransporter* i_pTransporter, io_rProperties.UValue[i] = 0; //steps 2 and 3 aDigest.update(s_nPadString, sizeof(s_nPadString)); - aDigest.update(&io_rProperties.DocumentIdentifier[0], io_rProperties.DocumentIdentifier.size()); + aDigest.update(io_rProperties.DocumentIdentifier.data(), io_rProperties.DocumentIdentifier.size()); ::std::vector<unsigned char> const nMD5Sum(aDigest.finalize()); //Step 4 rtl_cipher_initARCFOUR( aCipher, rtl_Cipher_DirectionEncode, - &io_rProperties.EncryptionKey[0], SECUR_128BIT_KEY, nullptr, 0 ); //destination data area + io_rProperties.EncryptionKey.data(), SECUR_128BIT_KEY, nullptr, 0 ); //destination data area rtl_cipher_encodeARCFOUR( aCipher, nMD5Sum.data(), nMD5Sum.size(), // the data to be encrypted - &io_rProperties.UValue[0], SECUR_128BIT_KEY ); //encrypted data, stored in class data member + io_rProperties.UValue.data(), SECUR_128BIT_KEY ); //encrypted data, stored in class data member //step 5 sal_uInt32 i; size_t y; @@ -1487,8 +1487,8 @@ bool PDFWriterImpl::computeUDictionaryValue( EncHashTransporter* i_pTransporter, rtl_cipher_initARCFOUR( aCipher, rtl_Cipher_DirectionEncode, nLocalKey, SECUR_128BIT_KEY, // key and key length nullptr, 0 ); //destination data area, on init can be NULL - rtl_cipher_encodeARCFOUR( aCipher, &io_rProperties.UValue[0], SECUR_128BIT_KEY, // the data to be encrypted - &io_rProperties.UValue[0], SECUR_128BIT_KEY ); // encrypted data, can be the same as the input, encrypt "in place" + rtl_cipher_encodeARCFOUR( aCipher, io_rProperties.UValue.data(), SECUR_128BIT_KEY, // the data to be encrypted + io_rProperties.UValue.data(), SECUR_128BIT_KEY ); // encrypted data, can be the same as the input, encrypt "in place" } } else diff --git a/vcl/source/opengl/OpenGLHelper.cxx b/vcl/source/opengl/OpenGLHelper.cxx index 356710a71d2a..b21619e18b46 100644 --- a/vcl/source/opengl/OpenGLHelper.cxx +++ b/vcl/source/opengl/OpenGLHelper.cxx @@ -125,13 +125,13 @@ namespace { { std::vector<char> ErrorMessage(InfoLogLength+1); if (bShaderNotProgram) - glGetShaderInfoLog (nId, InfoLogLength, nullptr, &ErrorMessage[0]); + glGetShaderInfoLog (nId, InfoLogLength, nullptr, ErrorMessage.data()); else - glGetProgramInfoLog(nId, InfoLogLength, nullptr, &ErrorMessage[0]); + glGetProgramInfoLog(nId, InfoLogLength, nullptr, ErrorMessage.data()); CHECK_GL_ERROR(); ErrorMessage.push_back('\0'); - SAL_WARN("vcl.opengl", rDetail << " shader " << nId << " compile for " << rName << " failed : " << &ErrorMessage[0]); + SAL_WARN("vcl.opengl", rDetail << " shader " << nId << " compile for " << rName << " failed : " << ErrorMessage.data()); } else SAL_WARN("vcl.opengl", rDetail << " shader: " << rName << " compile " << nId << " failed without error log"); diff --git a/vcl/unx/generic/fontmanager/fontmanager.cxx b/vcl/unx/generic/fontmanager/fontmanager.cxx index 21aa4d768d1b..7c6f40641887 100644 --- a/vcl/unx/generic/fontmanager/fontmanager.cxx +++ b/vcl/unx/generic/fontmanager/fontmanager.cxx @@ -1121,7 +1121,7 @@ void PrintFontManager::getGlyphWidths( fontID nFont, for (int i = 0; i < nGlyphs; i++) aGlyphIds[i] = sal_uInt16(i); std::unique_ptr<sal_uInt16[]> pMetrics = GetTTSimpleGlyphMetrics(pTTFont, - &aGlyphIds[0], + aGlyphIds.data(), nGlyphs, bVertical); if (pMetrics) diff --git a/vcl/unx/generic/gdi/gdiimpl.cxx b/vcl/unx/generic/gdi/gdiimpl.cxx index 6238a875536a..48a6a767e86b 100644 --- a/vcl/unx/generic/gdi/gdiimpl.cxx +++ b/vcl/unx/generic/gdi/gdiimpl.cxx @@ -1489,7 +1489,7 @@ bool X11SalGraphicsImpl::drawPolyPolygon( const int nTrapCount = aB2DTrapVector.size(); if( !nTrapCount ) return true; - const bool bDrawn = drawFilledTrapezoids( &aB2DTrapVector[0], nTrapCount, fTransparency ); + const bool bDrawn = drawFilledTrapezoids( aB2DTrapVector.data(), nTrapCount, fTransparency ); return bDrawn; } @@ -1565,7 +1565,7 @@ bool X11SalGraphicsImpl::drawFilledTrapezoids( const basegfx::B2DTrapezoid* pB2D // render the trapezoids const XRenderPictFormat* pMaskFormat = rRenderPeer.GetStandardFormatA8(); rRenderPeer.CompositeTrapezoids( PictOpOver, - rEntry.m_aPicture, aDstPic, pMaskFormat, 0, 0, &aTrapVector[0], aTrapVector.size() ); + rEntry.m_aPicture, aDstPic, pMaskFormat, 0, 0, aTrapVector.data(), aTrapVector.size() ); return true; } @@ -1639,7 +1639,7 @@ bool X11SalGraphicsImpl::drawFilledTriangles( // render the trapezoids const XRenderPictFormat* pMaskFormat = rRenderPeer.GetStandardFormatA8(); rRenderPeer.CompositeTriangles( PictOpOver, - rEntry.m_aPicture, aDstPic, pMaskFormat, 0, 0, &aTriVector[0], aTriVector.size() ); + rEntry.m_aPicture, aDstPic, pMaskFormat, 0, 0, aTriVector.data(), aTriVector.size() ); return true; } diff --git a/vcl/unx/generic/print/glyphset.cxx b/vcl/unx/generic/print/glyphset.cxx index 0f259ab5b669..522bb06f99c6 100644 --- a/vcl/unx/generic/print/glyphset.cxx +++ b/vcl/unx/generic/print/glyphset.cxx @@ -233,7 +233,7 @@ static void CreatePSUploadableFont( TrueTypeFont* pSrcFont, FILE* pTmpFile, aInfo.LoadFont( pSrcFont ); aInfo.CreateFontSubset( nTargetMask, pTmpFile, pGlyphSetName, - &aRequestedGlyphs[0], &aEncoding[0], nGlyphCount ); + &aRequestedGlyphs[0], aEncoding.data(), nGlyphCount ); } void diff --git a/vcl/unx/generic/window/salframe.cxx b/vcl/unx/generic/window/salframe.cxx index 9cacc0a886b0..b18fc5cecce2 100644 --- a/vcl/unx/generic/window/salframe.cxx +++ b/vcl/unx/generic/window/salframe.cxx @@ -2922,7 +2922,7 @@ bool X11SalFrame::appendUnicodeSequence( sal_Unicode c ) SalExtTextInputEvent aEv; aEv.maText = rSeq; - aEv.mpTextAttr = &attribs[0]; + aEv.mpTextAttr = attribs.data(); aEv.mnCursorPos = 0; aEv.mnCursorFlags = 0; diff --git a/vcl/unx/gtk/gtksalframe.cxx b/vcl/unx/gtk/gtksalframe.cxx index cc95a9f94e51..ebb35874bfef 100644 --- a/vcl/unx/gtk/gtksalframe.cxx +++ b/vcl/unx/gtk/gtksalframe.cxx @@ -3137,7 +3137,7 @@ void GtkSalFrame::IMHandler::endExtTextInput( EndExtTextInputFlags /*nFlags*/ ) if( ! aDel.isDeleted() ) { // mark previous preedit state again (will e.g. be sent at focus gain) - m_aInputEvent.mpTextAttr = &m_aInputFlags[0]; + m_aInputEvent.mpTextAttr = m_aInputFlags.data(); if( m_bFocused ) { // begin preedit again @@ -3453,7 +3453,7 @@ void GtkSalFrame::IMHandler::signalIMPreeditChanged( GtkIMContext*, gpointer im_ } while (pango_attr_iterator_next (iter)); pango_attr_iterator_destroy(iter); - pThis->m_aInputEvent.mpTextAttr = &pThis->m_aInputFlags[0]; + pThis->m_aInputEvent.mpTextAttr = pThis->m_aInputFlags.data(); g_free( pText ); pango_attr_list_unref( pAttrs ); diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx index 687f69f440f2..33f5f08c1f17 100644 --- a/vcl/unx/gtk3/gtk3gtkframe.cxx +++ b/vcl/unx/gtk3/gtk3gtkframe.cxx @@ -3712,7 +3712,7 @@ void GtkSalFrame::IMHandler::endExtTextInput( EndExtTextInputFlags /*nFlags*/ ) if( ! aDel.isDeleted() ) { // mark previous preedit state again (will e.g. be sent at focus gain) - m_aInputEvent.mpTextAttr = &m_aInputFlags[0]; + m_aInputEvent.mpTextAttr = m_aInputFlags.data(); if( m_bFocused ) { // begin preedit again @@ -4019,7 +4019,7 @@ void GtkSalFrame::IMHandler::signalIMPreeditChanged( GtkIMContext*, gpointer im_ } while (pango_attr_iterator_next (iter)); pango_attr_iterator_destroy(iter); - pThis->m_aInputEvent.mpTextAttr = &pThis->m_aInputFlags[0]; + pThis->m_aInputEvent.mpTextAttr = pThis->m_aInputFlags.data(); g_free( pText ); pango_attr_list_unref( pAttrs ); |