<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>72387</bug_id>
          
          <creation_ts>2011-11-15 07:55:43 -0800</creation_ts>
          <short_desc>Remove useless const modifier from KURL::init</short_desc>
          <delta_ts>2011-11-15 11:17:01 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>71921</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Kilzer (:ddkilzer)">ddkilzer</reporter>
          <assigned_to name="David Kilzer (:ddkilzer)">ddkilzer</assigned_to>
          <cc>darin</cc>
    
    <cc>koivisto</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>502903</commentid>
    <comment_count>0</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2011-11-15 07:55:43 -0800</bug_when>
    <thetext>Follow-up to Bug 71921 Comment #17.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>502911</commentid>
    <comment_count>1</comment_count>
      <attachid>115168</attachid>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2011-11-15 08:06:36 -0800</bug_when>
    <thetext>Created attachment 115168
Patch v1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>502935</commentid>
    <comment_count>2</comment_count>
      <attachid>115168</attachid>
    <who name="Andreas Kling">kling</who>
    <bug_when>2011-11-15 08:45:02 -0800</bug_when>
    <thetext>Comment on attachment 115168
Patch v1

View in context: https://bugs.webkit.org/attachment.cgi?id=115168&amp;action=review

&gt; Source/WebCore/platform/KURL.cpp:489
&gt; -                const char* bufferStart = bufferPos;
&gt; +                char* bufferStart = bufferPos;

Why is this const useless but the ones further down (baseString, baseStringStart, pathStart, baseStringEnd, relStringStart, relStringPos) aren&apos;t?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>502938</commentid>
    <comment_count>3</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2011-11-15 08:52:40 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 115168 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=115168&amp;action=review
&gt; 
&gt; &gt; Source/WebCore/platform/KURL.cpp:489
&gt; &gt; -                const char* bufferStart = bufferPos;
&gt; &gt; +                char* bufferStart = bufferPos;
&gt; 
&gt; Why is this const useless but the ones further down (baseString, baseStringStart, pathStart, baseStringEnd, relStringStart, relStringPos) aren&apos;t?

Per Darin&apos;s statement in Bug 71921 Comment #17, they would be useless as well.  This patch was only to remove the useless &apos;const&apos; modifier I added for Bug 71921, but I can remove the rest if that&apos;s what the consensus is.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>503009</commentid>
    <comment_count>4</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2011-11-15 10:14:32 -0800</bug_when>
    <thetext>We use const char* all the time, and I did not mean to imply that was useless. I am not saying that the const keyword is useless, just that making actual local variables const is not something we do in most WebKit code. Not the characters that a local variable points to, the local variable itself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>503010</commentid>
    <comment_count>5</comment_count>
      <attachid>115168</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2011-11-15 10:15:49 -0800</bug_when>
    <thetext>Comment on attachment 115168
Patch v1

Given that this is a pointer into a buffer of non-const characters, I think it&apos;s fine for it to be char*, even though I did not mean to claim this was useless at all!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>503083</commentid>
    <comment_count>6</comment_count>
      <attachid>115168</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-11-15 11:16:57 -0800</bug_when>
    <thetext>Comment on attachment 115168
Patch v1

Clearing flags on attachment: 115168

Committed r100298: &lt;http://trac.webkit.org/changeset/100298&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>503084</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-11-15 11:17:01 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>115168</attachid>
            <date>2011-11-15 08:06:36 -0800</date>
            <delta_ts>2011-11-15 11:16:57 -0800</delta_ts>
            <desc>Patch v1</desc>
            <filename>bug-72387-20111115080635.patch</filename>
            <type>text/plain</type>
            <size>1332</size>
            <attacher name="David Kilzer (:ddkilzer)">ddkilzer</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTAwMTg3CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggZjdhZjZiZmUwNjFmYjQ1
N2Q5NTcwZGM3ODgyNmNlMzUxNDY0YTUxNC4uMTM3MmU5MmI1N2JlMDBhNGQxOWExZDc2MmIxYmEx
MjM4ZDlmMTIwOSAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDEzIE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