Tag: cws_src680_macaddressbook01 User: cremlae Date: 2007-07-22 19:16:57+0000 Modified: dba/connectivity/source/drivers/macab/macabutilities.hxx
Log: #79848# Made a more logical variable name in macabutilities.hxx and added a missing CFRelease File Changes: Directory: /dba/connectivity/source/drivers/macab/ ================================================== File [changed]: macabutilities.hxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/macab/macabutilities.hxx?r1=1.1.2.3&r2=1.1.2.4 Delta lines: +9 -9 ------------------- --- macabutilities.hxx 2007-07-20 23:00:57+0000 1.1.2.3 +++ macabutilities.hxx 2007-07-22 19:16:55+0000 1.1.2.4 @@ -4,9 +4,9 @@ * * $RCSfile: macabutilities.hxx,v $ * - * $Revision: 1.1.2.3 $ + * $Revision: 1.1.2.4 $ * - * last change: $Author: cremlae $ $Date: 2007/07/20 23:00:57 $ + * last change: $Author: cremlae $ $Date: 2007/07/22 19:16:55 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -60,23 +60,23 @@ /* Copied all-but directly from code by Florian Heckl in * cws_src680_aquafilepicker01 * File was: fpicker/source/aqua/CFStringUtilities - * I only removed commented debugging lines and got rid of - * a release statement (since the methods calling this release - * the CFString on their own). + * I only removed commented debugging lines and changed variable + * names. */ if (NULL == sOrig) { return rtl::OUString(); } CFRetain(sOrig); - CFIndex nFileNameLength = CFStringGetLength(sOrig); + CFIndex nStringLength = CFStringGetLength(sOrig); - UniChar unichars[nFileNameLength+1]; + UniChar unichars[nStringLength+1]; //'close' the string buffer correctly - unichars[nFileNameLength] = '\0'; + unichars[nStringLength] = '\0'; - CFStringGetCharacters (sOrig, CFRangeMake(0,nFileNameLength), unichars); + CFStringGetCharacters (sOrig, CFRangeMake(0,nStringLength), unichars); + CFRelease(sOrig); return rtl::OUString(unichars); } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
